Skip to main content
4 events
when toggle format what by license comment
Oct 12, 2013 at 16:52 review Suggested edits
Oct 12, 2013 at 16:56
Dec 5, 2012 at 1:54 comment added None This looks nice, however, the jQuery documentation recommends using [type=radio] rather than :radio for better performance. It is a tradeoff between readability and performance. I normally take readability over performance on such trivial matters, but in this case I think [type=radio] is actually clearer. So in this case it would look like $("form input[type=radio]:checked").val(). Still a valid answer though.
Apr 24, 2012 at 15:57 history edited tvanfosson CC BY-SA 3.0
added 57 characters in body
Feb 27, 2009 at 20:00 history answered tvanfosson CC BY-SA 2.5