How to show required field with jqtouch in iphone view?
I've just started designing pages particularly for iphone browser (safari). I don't know if jqtouch is best or not, but I started working on it.
Till now I learned initialization of 开发者_开发技巧jqtouch, and also implemented some touch events (tap, swipe).
Now I am planning to create user interface and forms. For that I take a look on demo (Best viewed in webkit).
Now coming to my question, that what would be the best way to show required field in iphone view?
You can post any suggestions on UI creation for iphone..
Question belongs to only HTML, not related to objective c!
To start off, I don't think there is a convention for indicating a required form field in iPhone. So, it really is up to the developers. It also depends on how you implement the form fields. There are a few different ways you could do this. For example,
Text input field with a placeholder attribute
Drill down form, e.g. Settings
Key-value fields, e.g. Contacts
For the first option, you may have more space to put in more informative wording, such as that suggested by Vikas: "Username (required)".
For the latter two, you might just follow the desktop convention by adding an asterisk in the front/back of the label, e.g. "* Username".
精彩评论