Title attribute on text box?
Is there any way to add a title attribute to a text input box? I want a little box to popup to give guidance for inputting and adding a title attribute would do that. Alternatively is there any way to utilize jquery to do it?
A simple way is to use an HTML element instead, making the entries in the HTML element box in the Design panel somewhat as follows:
Frank
<input title="Whatever note is wanted" value="" name="text-name" type="text">
Frank
If styling the input box seems a problem when creating it via the HTML element as in the post above, I have found that an easy way is separately to put an input element into a container, style that input element to taste in the Design panel, and use the class of that input element in the HTML element box. Thus, if the class of the input element were input-1, the HTML box would be
One then makes the container (which holds the imput element) disappear by changing its Display from Block to None.
Frank
<input class="input-1" title="Whatever note is wanted" value="" name="text-name" type="text">
One then makes the container (which holds the imput element) disappear by changing its Display from Block to None.
Frank
Thanks. It's certainly a workable solution, but kind of goes against the ethos of RSD 
Can't think why there isn't a box for title and value in the RSD design pane.

Can't think why there isn't a box for title and value in the RSD design pane.
RSD Beta 1.5 does include a Title box (and boxes for Pattern and Form, and a tick box for Required) for the input element, and so it's almost certainly just a matter of waiting.
Frank
Frank
Cheers Frank, thanks for your time, that's handy to know. Of course using the title attribute as a tooltip doesn't work on a smartphone/tablet as you can't hover. Figured out how to do it with a handy jquery plugin which works with the version of jquery shipped with RSD. Still needs the title attribute. Yay

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.