jquery - clear text search


/ Published in: jQuery
Save to your folder(s)

simple jquery code to clear form fields


Copy this code and paste it in your HTML
  1. // clear input field
  2. $("input").focus(function() {
  3. $("input").attr("value","");
  4. });

Report this snippet


Comments


You need to login to view comments.