Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Go button in iPhone with JavaScript

Tags:

iphone

I'm creating small form for iPhone and on that form I do JavaScript validation (backed up by server validation of course but that is not the point).

As a result of this validation I enable/disable submit button dynamically. This work great except that "Go" button in on screen keyboard does not reflect the status of the only submit button I have and is always enabled.

Is there any way this can be fixed? Can I somehow disable that Go button with JavaScript?

like image 641
vava Avatar asked Dec 12 '22 14:12

vava


1 Answers

You can hide the Go button entirely by removing the form element. By that I mean maintain your inputs and selections but remove the <form> tags.

You can still submit/validate using jQuery but the Go button will be replaced by the Return button.

like image 170
Gerard Avatar answered Dec 28 '22 05:12

Gerard