How do I “active” a radio button that hasn’t been load yet?
It’s like .live() but only for radio button.
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.
Don’t bother with jQuery unless you have to. If you’re adding an element to the page or if it’s an element that’s meant to be checked when the page first loads, just set the value right in the HTML (or whatever server-side language creates HTML output):
If it IS being added with jQuery, I assume it’s being done with
.html()or.append()or whatever other method; in which case the advice still applies: