Tuesday 15 March 2016

remove empty field from input

 function submitFormManual(){
        //get name search form
        var SearchForm = $("#propertyFilertForm");
         SearchForm.find('input[name], select[name]').each(function(){
            if (!$(this).val()){
                $(this).removeAttr('name');
            }
         });
         //form submit
        SearchForm.submit();
    }

No comments:

Post a Comment