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

RSS Icon Subscribe to comments

You need to login to post a comment.