I've got the following which will excludes all buttons, but how can I also exclude hidden fields?
$("#selector").find(":input:not(:button)").each(function (i) { // do something
I'm sure this is probably simple, I just can't find it.
Many thanks!
I've got the following which will excludes all buttons, but how can I also exclude hidden fields?
$("#selector").find(":input:not(:button)").each(function (i) { // do something
I'm sure this is probably simple, I just can't find it.
Many thanks!
$('#selector').find('input').not(':button').not('input[type=hidden]').each(function(i) {
});
should do it. I'm not sure if this one
$('#selector').find('input').not(':button').not(':hidden').each(function(i) {
});
also works for that purpose, but its worth a try.
$("#selector :input:not(:button, :hidden)").each(function (i) { // do something
the following code should do it..
$('#selector :input').not(':button,:hidden').each(...);