Is there a nicer way in jQuery to do this ?
$(":text").each(function() {
if (this.style.visibility == "visible") {
...
};
});
yes:
$(":text:visible").each(function() {
...
});
UPDATE Since jQuery this doesn't work anymore: details.
visibility and not display).$(":text:visible, :text:not(':hidden')".each(.. would work.