How to select the following n hidden elements that have class "foo" using jQuery?
Boldewyn's answer works, but filternot required. It also selects only hidden elements:
filter
$(this).nextAll('.foo:hidden:lt('+n+')')
Using nextAll () and filter () :
$(this).nextAll().filter('.foo:hidden:lt('+n+')');
The selector :lt()selects the following nitems, hidden inputs :hidden.
:lt()
n
:hidden
$(this).nextAll('.foo:hidden').filter(':lt('+n+')')
Source: https://habr.com/ru/post/1738465/More articles:How to format this string in C # - c #Домашняя автоматизация x10 с NAS на базе Linux (синология) - linuxWhat is the difference between Server.Transfer and Response.Redirect? - c #How to match only URLs without extension? - urlRegExp: want to find all links that do not end with ".html" - regexSetting Property Values in MSBuild - propertiesTable borders do not display properly when converting from an HTML page in MS Word 2003 - htmlКак сохранить целочисленное значение в 4 байта в памяти фрагмента, который разделен как тип char - cWPF Canvas Binding - c #Programmatically Add a New Custom Field to Google Contacts using the Google Contacts API - c #All Articles