Result of expression ‘document.forms[0].submit’ [[object HTMLInputElement]] is not a function
This one had me stumped, until I realized what it was telling me… that my submit button was named “submit”. I changed the name of the submit button and the problem went away. Basically, Javascript provides a “convenience” by adding the names of the form inputs as children of the form. But this then clashes with preset function names, like the submit() function.<input type="submit" name="submit" id="Button1" /><input type="submit" name="button1" id="Button1" />
-
assadqazi liked this
-
mattbindoff posted this