Timeline for How do I check whether a checkbox is checked in jQuery?
Current License: CC BY-SA 3.0
27 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 15, 2023 at 20:14 | comment | added | John Lord | People don't code in jquery exclusively. you can't. In any case, jquery isn't a language. It's a library, and you merely have to look at code for checkboxes specifically to see that the programmers can't make up their mind how to set/unset even a simple common control. I just finished fixing one of our site's pages because jquery versions changed and attr no longer worked on checkboxes. javascript doesn't have that problem and the only reason we have jquery at all in our project is it is required by our kendo libraries. | |
May 3, 2023 at 14:24 | comment | added | Adriano Varoli Piazza | "How would 'is not jquery' be an argument?" Because, while you can indeed use both jquery and plain js on the same script, it's more readable if you use one coding style rather than two. And if you already accepted the jquery tradeoffs, you may as well use it. | |
Sep 7, 2022 at 22:00 | comment | added | John Lord | Not only that but jquery is a javascript extension, and therefore contains all of javascript. . In any case "this" is a jquery object so he's completely wrong anyway. | |
Aug 5, 2022 at 10:55 | comment | added | Andy | How would “is not jQuery” be an argument? That attitude is quite harmful and the reason why it’s so hard to get rid of jQuery nowadays! If you can use vanilla JavaScript from ages ago, which works everywhere and is in no way more complicated to use or longer to write, you should definitely do so. | |
Apr 8, 2019 at 15:05 | review | Low quality answers | |||
Apr 8, 2019 at 15:21 | |||||
Mar 9, 2018 at 9:27 | review | Suggested edits | |||
Mar 9, 2018 at 11:05 | |||||
Mar 9, 2018 at 2:06 | history | rollback | Brad Larson♦ |
Rollback to Revision 11
|
|
Mar 7, 2018 at 6:06 | history | edited | Ketan Savaliya | CC BY-SA 3.0 |
i added example link
|
Jul 6, 2017 at 10:58 | comment | added | Marc Compte |
This is not an answer to the question. this.checked is not jQuery, as the OP asked for. Also, it only works when user clicks on the checkbox, which is not part of the question. The question is, again, How to check whether a checkbox is checked in jQuery? at any given time with or without clicking the checkbox and in jQuery.
|
|
Jun 26, 2017 at 7:20 | review | Suggested edits | |||
Jun 26, 2017 at 7:56 | |||||
May 22, 2017 at 15:43 | history | rollback | Heretic Monkey |
Rollback to Revision 9
|
|
S May 22, 2017 at 15:40 | history | suggested | Cholowao | CC BY-SA 3.0 |
depreceted
|
May 22, 2017 at 14:20 | review | Suggested edits | |||
S May 22, 2017 at 15:40 | |||||
Sep 1, 2016 at 8:03 | review | Suggested edits | |||
Sep 1, 2016 at 9:17 | |||||
Jan 16, 2016 at 9:27 | history | edited | Michał Perłakowski | CC BY-SA 3.0 |
added code snippet
|
May 18, 2015 at 20:22 | history | edited | user1106925 | CC BY-SA 3.0 |
added 376 characters in body
|
May 7, 2015 at 21:38 | review | Low quality answers | |||
May 7, 2015 at 22:00 | |||||
Apr 11, 2014 at 18:02 | history | edited | Manwal | CC BY-SA 3.0 |
added 1 characters in body
|
Nov 10, 2013 at 23:34 | history | edited | Oliver Moran | CC BY-SA 3.0 |
looks like the old way not longer works in jQuery; editing to show only currently working code
|
Sep 29, 2013 at 15:45 | history | made wiki | Post Made Community Wiki by Udit Bhardwaj | ||
S Jan 16, 2013 at 10:22 | history | suggested | Milind Anantwar | CC BY-SA 3.0 |
formatting
|
Jan 16, 2013 at 10:05 | review | Suggested edits | |||
S Jan 16, 2013 at 10:22 | |||||
May 31, 2012 at 10:30 | history | edited | karim79 | CC BY-SA 3.0 |
Improved formatting
|
S May 29, 2012 at 14:03 | history | suggested | TheBlackBenzKid | CC BY-SA 3.0 |
Make inline code cleaner.
|
May 29, 2012 at 13:36 | review | Suggested edits | |||
S May 29, 2012 at 14:03 | |||||
Jul 6, 2010 at 1:46 | history | edited | karim79 | CC BY-SA 2.5 |
added 347 characters in body; added 34 characters in body
|
May 23, 2009 at 15:20 | history | answered | karim79 | CC BY-SA 2.5 |