https://jsfiddle.net/huat81z4/
CODE HTML:
<input class="search" value="Search" type="text" size="18" name="s" id="s">
CODE JS:
$(document).ready(function(){
$('input .search).click(function(){
$(".this").attr("value", "");
});
});
I want to disappear the word "Search" when the user clicks on the form. What is wrong with my code?
Is there any function that makes it better?