Here is my view source:
<input id='ctl00_cp_ctrlNew_lendeeMe' type='radio' name='ctl00$cp$ctrlNew$whoBorrowed' value='lendeeMe' />
And I am trying to use this selector to check one of them, but it is not working:
$('input[@id$='lendeeMe']').attr('checked','checked');
but if I do this, it works fine:
$('#ctl00_cp_ctrlNew_lendeeMe').attr('checked','checked');
That is due tot he crazy way asp.net makes controls, so I figured using the previous selector would be easier. What am I doing wrong?
What version of jQuery are you using?
Because as said here:
So maybe you want to simply try: