Vote count:
0
After a form submit, which opens a preview page in another tab based on the input, I would like to clear the text from the input box and change the text within a button upon focusing/clicking/entering that input box.
Here's my code, Jquery version 1.9.1:
//clear text box after form submit
$('input[name=offer_id]').focus(function() {
$('input[name=offer_id]').val('');
$('#update-offer').html('Update');
});
It works great in Chrome! I appreciate any help, thanks.
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire