i want to select all labels inside a div that are only apply style display:none
labels like below
<label for="txtAmount_146" generated="true" class="errortd" style="display: none; ">This field is required.</label>
i tried
if($('.errortd', this).not(':hidden')){
alert($(this).text())
}
I have no luck still any help
You want to select all labels that have “display:none” and do something, right?
Consider this html:
You can alert the text of the first and third label with this: