I'm trying to change the src of an image form submit button using an onclick, but it doesn't seem to be working correctly. Am I missing something?
<input class="submit_image" id="my_form_button" onclick="$('my_form_button').src='/images/buttons/submitting.gif'" src="/images/buttons/submit.gif" type="image" />
I've also tried using the same JS on the form tag using onsubmit with no luck.