Skip to content Skip to sidebar Skip to footer

Text Link Won't Submit Form By Javascript In Safari Using Name

I'm using Safari 5.0.3 I have a form in my html:

Search

 

Solution 1:

Use: document.getElementById('searchForm').submit() instead.

Solution 2:

Try this out:

<ahref="#"onClick="document.searchForm.submit(); return false;">

If that doesn't work, Macy Abbey has a great idea of adding an id to the form and referencing it by that.

Post a Comment for "Text Link Won't Submit Form By Javascript In Safari Using Name"