How to clear specific input field in jquery <p>I have a form. After getting a specific string from a jQuery Ajax request, I want to clear some input fields of a form by jQuery id selector. What should I do ?</p> <p>My jQuery code:</p> <pre><code> $.post(site_url.concat('xml_request/cert.php') , { special_code:special_code , cert_id_name:cert_id_name , recive_date:sector_dob5 , about_cert:about_cert } , function(data){ $('#add_cert_feedback').html(data); if (data.indexOf('New Certificate is now Added') !== -1) { //Want to reset a Input field here } else { $('#the_heck').html('shit!'); } $.post(site_url.concat('xml_request/cert.php') , { special_code:'_get_array_cert' } , function(data){ $('#cert_load').html(data); }); }); </code></pre>