I am looking for a solution for following:
For JQuery: How can I change the attribute of all parents of objects that have the same name?
Here is my code:
<div class="roundedOne">
<input type="radio" id="id_single" name = "radStatus" value = "1" />
<label for="id_single"></label>
</div>
<div class="roundedOne">
<input type="radio" id="id_married" name = "radStatus" value = "1" />
<label for="id_single"></label>
</div>
I want to do something like : $("[name='radStatus']").parent().attr("class", "myNewClassName");
Thanks :)