Is there a better way to do this in jQuery?
$(":text").each(function() { if (this.style.visibility == "visible") { ... }; });
Yes
$(":text:visible").each(function() { ... });
The UPDATE . Since jQuery is no longer working: details .
You are looking for a :visibleselector:
:visible
$(':text:visible')
To use speed
$(':text').filter(":visible")
Source: https://habr.com/ru/post/1741668/More articles:Unable to create MVC project in VS2010 - visual-studio-2010jquery.not () filter - jqueryNo Symfony Form Values - formsGet the name of the current view in UIWindow - objective-cDatabase schema for multiple category / product relationships - phpМетоды расширения в проекте библиотеки классов - c#Text encoding in HTML text fields - htmlWhich model is good for a bullet hit test in a game that requires server verification? - javaProblems with application launch certificates in Windows 7 - c #log in as a proxy for a specific user - java-eeAll Articles