Hi,
if i have the following:
<input type="text" id="something_txtYear" />
How do select this in JQuery using just the "txtYear" part??
Malcolm
Hi,
if i have the following:
<input type="text" id="something_txtYear" />
How do select this in JQuery using just the "txtYear" part??
Malcolm
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.