Is this JQuery valid? $("[name=enableTooltip]:checked")
What does it does?
Is this JQuery valid? $("[name=enableTooltip]:checked")
What does it does?
This is more understandable:
$("input[name=enableTooltip]:checked")
This selects all inputs which has name attribute equals "enableTooltip" and checked status is true.
Example match:
<input type="checkbox" name="enableTooltip" checked="checked" />