Home » Jquery » On Enter Submit Form and Reset Form using Jquery

$("#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');
            }
    });

Array ( [0] => Jquery )