Default Text In Search Box Area
Page 1 of 1
Default Text In Search Box Area
How do you write this code so the text will disappear once the user clicks on the input area, and also that it will reappear if the user clicks somewhere else? Right now the default text is "Search..." and it stays there until someone starts to write something into the search, they have to press and actual letter on there keyboard before the default text disappears. In short and the easiest way to explain this is by example, see the little search box on the right-hand side above the widgets area here just above the google+ twitter and facebook like count buttons on this forum? I want it to behave like that, when you click into the text area the "Search..." text disappears, and when you click out of it it reappears again.
- Code:
$(window).load(function() {
document.getElementById('fa_search').getElementsByTagName('input')[0].setAttribute('placeholder','Search...');
});
Re: Default Text In Search Box Area
Nope its not doing it, you can check it on my forum here:
Edit: I should mention its for the toolbar search box.
http://runawayhorses.alldiscussion.net/
Edit: I should mention its for the toolbar search box.
http://runawayhorses.alldiscussion.net/
Similar topics
» Text Area Coding Problem?
» Text area and Save Button
» Text Input Area
» Text area boxes have become small in size
» Default Text Size
» Text area and Save Button
» Text Input Area
» Text area boxes have become small in size
» Default Text Size
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum