<div id="q3-slider" class="sliderClass"> <input type="radio" name="like-amount" id="3-1" value="1" required> <label for="3-1" data-like-amount="Ew!"></label> <input type="radio" name="like-amount" id="3-2" value="2" required> <label for="3-2" data-like-amount="Meh"></label> <input type="radio" name="like-amount" id="3-3" value="3" required> <label for="3-3" data-like-amount="okay.."></label> <input type="radio" name="like-amount" id="3-4" value="4" required> <label for="3-4" data-like-amount="A bit"></label> <input type="radio" name="like-amount" id="3-5" value="5" required> <label for="3-5" data-like-amount="A lot"></label> </div> I want to find the value of the check radio button insider this div which has an id of q3-slider.
https://stackoverflow.com/questions/67428509/how-do-i-get-the-value-of-the-checked-radio-button-given-the-id-of-the-div-they May 07, 2021 at 11:06AM
没有评论:
发表评论