July 26th, 2017, 06:19 AM
-
All radios set to not checked
Hi;
How can I make sure none of the radio buttons is checked when the page loads?
Code:
<div class="col-lg-6">
<input class = "dragable_items" type="radio" name = "dragable_item" id = "dragable_item_text" value="option1"> Text
<input class = "dragable_items" type="radio" name = "dragable_item" id = "dragable_item_image" value="option2"> Image
</div>
For some reason it always loads the page with first checkbox checked. But I don't have "checked" in input.
Thanks
Last edited by English Breakfast Tea; July 26th, 2017 at 06:22 AM.
July 26th, 2017, 07:31 AM
-
If they're starting checked then something is checking them.
August 28th, 2017, 02:22 AM
-
Try this jquery: $("input:radio").attr("checked", false);