User:Nachteule/SearchDefaultText
Jump to navigation
Jump to search
In HTML5 it's possible to have placeholder text in input fields. This MediaWiki is Version 1.16.x, so doctype is not HTML5. We have to use JavaScript to get placeholder text in search box.
See working example here (de.uncyclopedia jQuery-sandbox)
Easiest way is to use MediaWikis build-in jQuery library. If we have MediaWiki:Vector.js (for fake vector scripts), this would be the code: User:Nachteule/SearchDefaultText.js