Hi,
I like the Safari searchbox system, but it's a pity it doesn't validate
XHTML. So here's my take on it, the jQuery-way:
http://www.jquery.info/IMG/html/18_safari_searchbox.html
The code is so short I can't help copypasting it here:
$(document).ready(function(){
var o =
$('input#search')
.onefocus(function(){
$(this).attr('value','');
});
if (jQuery.browser.safari) {
o.attr('type','search')
.attr('autosave','com.jquery')
.attr('results','5');
}
});
And, I propose that all jQuery blogs that want to use this method use the
same 'autosave' domain (com.jquery) so that the search history is kept
across all our sites!
-- Fil
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/