$("#advancedsearch input, #advancedsearch SELECT").keypress(function(e) { code= (e.keyCode ? e.keyCode : e.which); if (code == 13){ alert("formsubmitted"); //$("#advanceSearchForm").submit(); //$('#advancedsearch').slideUp('fast'); //$('.advancedlink').parent().removeClass("active"); $(':text, :password, :file, SELECT', '#advanceSearchForm').val(''); $(':input', '#advanceSearchForm').removeAttr('checked').removeAttr('selected'); } });
On Enter Submit Form and Reset Form using Jquery
By Web Designer & Web Developer
Mumbai October 25, 2011Jquery
Comments Off on On Enter Submit Form and Reset Form using Jquery