92
rated 0 times
[
93]
[
1]
/ answers: 1 / hits: 58154
/ 12 Years ago, mon, march 19, 2012, 12:00:00
I've no idea why this isn't working, but I'm sure it's a very common bit of Javascript. My syntax is clearly lacking, and I don't know why:
<input type=text value=search id=search name=q onclick=javascript:if($(this).val() == 'search') {$(this).val() = '';} return false; />
More From » jquery