Archives July 11, 2009
Javascript and Namespaces...
Written by
on
in
Snaking.
Say you want to trigger the submission of a form in jquery:
$("form.someclass").submit();
Simple, straightforward, robust... you think. Turns out in Firefox, if you have any form element (such as your submit button) named "submit", the submit referenced becomes that element, rather than the function to do the submission.
OMG, you think, has no-one thought ...