-2
My input is like this:
<input type="text" class="noclear form-control" value="" name="" required>
Jquery:
form.find('input[class!="noclear"]').val('');
If I leave the input, only with (class="noclear") works right! But I need to leave this other class (form-control), because it is the formatting of the input.
By logic, it is only to clean the input, where there is no class (noclear).
I tested your solution, but you’re still clearing the field :(
– user3081
So your question is missing information. Because the solution works
– fernandosavio
It was the bloody kkkkkk cache. It worked now! kkkkkkk. Thank you very much! Here I have also tested: ( form.find('input').not(".noclear").val('); ) and returned as correct, as its solution. It seems there are several ways to do this, I liked it.
– user3081