I'm trying to display hint onfocus
using jqu开发者_如何学Pythonery ui autocomplete, i.e. when the user focuses on the input, it should dropdown with a text saying "search something"
Can you help please? thanks
Is it much better to put your hint on an HTML5 placeholder?
placeholder="Search Something"
I think what you are looking for is something like a tool tip
Try yahoo tooltip
Also try putting the title
attribute in the input textbox of your search
<input type='text' title='Search something' name='txtSearch'>
精彩评论