I'm having trouble with AJAX form submitting on the iphone. I have a search field at the top with no submit button. My plan is to submit the form when the user hits "Go" or "Search" on the iphone keyboard. Anybody got any ideas?
Edit: I have the ajax working but I cant seem to get the keyboard to close after I press search.
Here is the code:
<form id="searchForm" method="post" onsubmit="event.preventDefault(); showSearch(search.value);"> <input type="text" name="search" id="searchField"> </form>
Thanks! I got it. Who knew it could be so simple. I just added search.blur(); to the onsubmit.