write Search.. in search box
3 posters
Page 1 of 1
write Search.. in search box
how can i writ Search... in this search box like this
Last edited by omarpop23 on May 31st 2016, 10:46 am; edited 1 time in total
Re: write Search.. in search box
Please change the title of your topic to something that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: write Search.. in search box
You can use one of the following scripts in all the pages.
Option 1 :
Uses an older placeholder method.
Option 2 :
Uses the placeholder attribute.
Option 1 :
Uses an older placeholder method.
- Code:
$(function() {
$(function() {
var fa_textarea = document.getElementById('fa_textarea');
if (fa_textarea) {
window.fa_textarea_placeholder = 'Search...';
fa_textarea.value = fa_textarea_placeholder;
fa_textarea.onfocus = function() {
if (this.value == fa_textarea_placeholder) {
this.value = '';
}
};
fa_textarea.onblur = function() {
if (!this.value) {
this.value = fa_textarea_placeholder;
}
};
}
});
});
Option 2 :
Uses the placeholder attribute.
- Code:
$(function() {
$(function() {
var fa_textarea = document.getElementById('fa_textarea');
if (fa_textarea) {
fa_textarea.placeholder = 'Search...';
}
});
});
Re: write Search.. in search box
I reviewed the scripts and there's no reason they shouldn't work, which leads me to believe the problem is from a script installed on your end. Please provide the URL of the forum you're installing this on, so I may inspect your forum.
Similar topics
» How do I remove "Search Google" from "Advanced Search"?
» Any way to replace the search tab with an actual search bar? SOLVED
» hi need help with search bar
» Search Bar
» No search box
» Any way to replace the search tab with an actual search bar? SOLVED
» hi need help with search bar
» Search Bar
» No search box
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum