I am using an HTML 5 form on an iPhone. This form has an input element like the following:
W
I agree with @PorneL's answer, however, you can potentially do some work to simulate the results you want. I will stipulate that it's not the best way to do it.
In pseudo code:
Again, it may not be the best solution, but it can work this way.