for static html page
$("input:checked").addClass("highlight");
works fine . But for ajax populated page its not working.
Is there any better idea how radio box can be highlighted for ajax pages as well.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just put this somewhere before your first AJAX call:
If you aren’t altering their values with JS, then I wouldn’t use jQuery at all, just use CSS:
Note this CSS selector will not work in IE6.