I am interesting which method is faster: :not selector or not() method.
For example in such query:
$(this).find(':input').not(':input[type=button], :input[type=submit], :input[type=reset]').each(function() { ... });
Thank you
See http://jsperf.com/jquery-css3-not-vs-not
:not is on average is about twice as fast.
Try this please:
Good read: jQuery selector question (how to select all input fields on a form EXCEPT buttons and checkbox)
http://api.jquery.com/not-selector/
This should help your cause :)
Code
$(this).find(':input:not(:button):not(:submit):not(:reset)').each(function() { ... });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With