#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2017
    Posts
    88
    Rep Power
    2

    CheckAll JQuery checkboxes outside forms


    Does anyone have any select/select_all/deselect code for jquery ? I have tried a few i found on google and none worked. One by one the checkboxes worked selecting but not all at once.
    Tried this one a number of times and didn't get any results. For both 1.6+ and older. https://www.sanwebe.com/2014/01/how-...ckboxes-jquery
    Have no idea why isn't working, I don't get any errors in the dev console.
  2. #2
  3. Maddening Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,544
    Rep Power
    9645
    Code:
    $("some selector in here").prop("checked", true to check or false to uncheck);
    It's that simple. If it doesn't work for you then post your markup and code.

IMN logo majestic logo threadwatch logo seochat tools logo