[Solved] Javascript/jQuery: search within object
HTML <div class=”days”> <input id=”dayMonday” name=”days-select” type=”radio” value=”Mon”> <label for=”dayMonday”>Monday</label> <br> <input id=”dayTuesday” name=”days-select” type=”radio” value=”Tue”> <label for=”dayTuesday”>Tuesday</label> </div> script $(document).ready(function () { //your .days selector is actually getting the div and not the radio button var div = $(‘.days’); //maybe here you want to do some things with the div… //… var radiobtn = … Read more