I have a very long php form which is used to save input values entered by users. I want to show hints next to the input boxes. I know this HTML input field hint but this is not my goal, i want to show it next to the input boxes which will appear/disappear when ever user selects the respective field. (i want this in html not in javascript etc because i do not know JavaScript.)
You should use HTML5 and use textfields like
<input type="text" placeholder="enter input" title="Enter input here">
You can do it with the :focus
CSS pseudo-class. Put a span next to the input box and give it this style:
.hint { display: none; }
input:focus + .hint { display: inline; }
JSBin: http://jsbin.com/inilot/1/edit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With