[jQuery] Radio button
[jQuery] Radio button
Hi,
I have a problem, i'd like to mark the radio button that's checked.
Here's what i came up with, but it doesn't work.
$(document).ready(function() {
$("input[@name='section']").click(function(){
$("input[@name='section']:checked").val() == 1 ? $
("input[@name='section']:checked").css("background","red") : "";
});
}
)
Can anyone please give me some pointers? i'm new to jquery and i'm
still struggling. Thanks in advance