TABINDEX and a Couple of Other Form Tricks
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
Lose the VALUE TextYou'll note up above that I have placed text inside the text boxes in the example form. I see this done a lot. You get that text by adding the attribute VALUE="text text text text" to the input tag.
Have you ever been to a form that had text in a box you were supposed to write in? The problem is that you click on the text box and the text remains. You need to highlight and erase all that text before you can put in your own text.
Well, erase no more. Dig this. Click on the text box below...the one with all of the text in it.
<INPUT TYPE="text" VALUE="This is text in a text box" SIZE="45" onFocus="this.value=''">
That's ThatSo, there you go. You've got a few new form tricks to add to your bag. These are solid tricks that actually add usability to your pages. How often can you say that?