if i have the following:
<input type="text" id="something_txtYear" />
How do select this in JQuery using just the “txtYear” part??
Malcolm
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.
Either
$('[id$=txtYear]')to match only at the end of the id or$('[id*=txtYear]')to match anywhere in the id.You’ll want to look at: http://docs.jquery.com/Selectors , scroll down to the section on Attribute Filters.