/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function() { $('#inputWrapper').click(function() { if($(':input','#formId').val() == 'Search...') { $(':input','#formId').val(''); } }); });