I need to put a hint for a text box.I know it can be done via placeholder , but I also need to set value for the same text box (The initial value should be hidden).Is there any way to that rather than some logic?
This occurred while I am developing a mobile app using html5 and jquery-mobile.I am trying to build a custom hour and minute selector.Insted of html is there any option in jquery-mobile?
Thank you
Set the placeholder value via the standard JQM method identified via the JQM docs. Then, have JQuery watch for the user selecting the input field. Then tell JQuery to add a value to the input field.
You could try something like this:
To set an input field with a placeholder:
To add the default value:
JQuery Placeholder info
JQuery Focus info