#1
  1. A Change of Season
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,246
    Rep Power
    220

    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 07:22 AM.
  2. #2
  3. Lazy Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,436
    Rep Power
    9645
    If they're starting checked then something is checking them.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2017
    Posts
    5
    Rep Power
    0
    Try this jquery: $("input:radio").attr("checked", false);

IMN logo majestic logo threadwatch logo seochat tools logo