Hello there, I have a div with id kGrowl
and inside that div I have another div that has a select element with name = mover
. I try to use this selector:
$('#kGrowl:contains([name=mover])').length
But it is currently returning 0. How is my selector wrong?
Thanks.
Edit:
Gabriel's answer is best but I also realized its the :has
attribute that will take a jQuery selector, not contains. So you could do:
$('#kGrowl:has([name=mover])').length