I need to count the number of text inputs with a value of 1.
I tried the following but no luck.
$('.class[value="1"]').length $('.class:contains("1")').length
Using $('.class[value="1"]') technically works, however, if the values ββin the text input change after loading, it still considers it the default load value.
I took a long shot using the .live click event to get the current value, but still no luck.
I'm out of luck using $('.class:contains("1")')
It seems very simple, but still eluded me.
javascript jquery jquery-selectors
ticallian
source share