On Oct 1, 2007, at 9:36 AM, Danjojo wrote:
Thank you! IE 7 throws an error "something about not supporting an object".. FireFox is happy and FireBug does not display an error.
It might work better to use .val('') instead of .attr('value','')
Now if someone were to type in a search word.. then focus away for whatever reason.. then click back in, the search box would clear again..
Do you want that to happen? Or do you only want it to clear if the current value is "Search term or part #"?
If you only want it to clear when it has that initial value, you could do this:
$("#searchBox").focus(function() { if ( $(this).val() == "Search term or part #") $(this).val(''); } }); Hope that helps.
Firebug also at that point throws: c[j].apply is not a function e(Object type=click target=input#searchBox.input)jquery-svn.js (line 11) e()jquery-svn.js (line 11) [Break on this error] eval(function(p,a,c,k,e,r){e=function(c) {return(c<a?'':e(parseInt(c/a)))+((c=c%a...
If you're still getting that error after making the changes above, try referencing the full jquery.js file instead of the packed version so we can get a better idea of where the error is occurring.
--Karl