Skip to main content
14 events
when toggle format what by license comment
Apr 26, 2015 at 7:42 history edited Qantas 94 Heavy CC BY-SA 3.0
added 1 character in body
Apr 26, 2015 at 0:49 vote accept SunnyRed
Apr 25, 2015 at 23:36 comment added Cerbrus It's a pseudo-class also used for styling, sure. What I mean is that .is(':checked') has nothing to do with styling.
Apr 25, 2015 at 23:30 comment added Ben Voigt @Cerbrus: So it's not actually inspecting the CSS :checked pseudo-class ?
Apr 25, 2015 at 23:28 comment added Cerbrus :checked really has nothing to do with style (/ classes)... Only with the element's state.
Apr 25, 2015 at 23:26 comment added Ben Voigt @Cerbrus: No, the reason I called them garbage is because they do not say how they work. Just "here is code that (solves your problem)" (at least the problem is resummarized). I haven't done web development in years, but I have this sneaking suspicion that, despite your claim that "both functions work the same way", one is actually dealing with style classes and the other with attributes, which are not the same thing.
Apr 25, 2015 at 23:22 comment added Cerbrus Imo, not significant enough to call answers lacking it "Garbage". (I'm not saying they're great answers, let that be clear)
Apr 25, 2015 at 23:21 comment added Ben Voigt @Cerbrus: "There's no significant difference" is itself a significant statement.
Apr 25, 2015 at 23:18 comment added Cerbrus Fine, correction: "There's literally nothing more, of significance, to say". In the end, both functions work the same way. There's no significant difference in support, speed, or functionality. Except that one can be used as a setter, which is explained, there.
Apr 25, 2015 at 23:13 comment added Ben Voigt @Cerbrus: The answers do not tell me what the tiny snippets do. They do not tell me that one is a test for the :checked pseudo-class and another is a test of the checked attribute. (At least, I assume that is the difference... the answers should not leave me making assumptions.) They do not tell me whether one method is preferred, maybe because it is faster, or more portable. Your "literally nothing more to say" couldn't be more wrong.
Apr 25, 2015 at 23:10 comment added Cerbrus That sentence was the reason for my comment. There's literally nothing more to say than what's in those answers. It's simply what those tiny snippets of code do.
Apr 25, 2015 at 23:09 comment added Ben Voigt @Cerbrus: Was my last sentence unclear?
Apr 25, 2015 at 23:08 comment added Cerbrus Do you really need to further explain those 10-20 characters of code other than saying: "Use <code> to determine whether or not it's checked"? What more is there to explain, even?
Apr 25, 2015 at 23:02 history answered Ben Voigt CC BY-SA 3.0