I'm fairly new to jQuery, so this question may be very basic, but I need some help understanding.
I have a form button:
I change the the class and the value via jQuery:
<input type="button" id="do" class="edit" value="Edit" />
So now it looks like this:
Now, when I click on the changed button, I was anticipating the execution of this code:
<input type="button" id="do" class="submit" value="Submit" />
But, nothing happens, and Firebug records nothing on the console. So, as far as I can tell, the new class is not being recognized.
info = $(this.form.id).serialize();
info = info + '&do=' + $('#do-').val();