Reputation: 2034
I'm trying to count how many selects are still are their default blank value.
I've got this to count the selects:
$('select.fabricColorSelect').size()
How do I modify that to only count the selects whose selected option matches a blank string?
Upvotes: 0
Views: 34
Reputation: 219804
Off of the top of my head, I think this will work:
$('select.fabricColorSelect option[value=""]:checked').size()
Upvotes: 2