Selecting radio input
Selecting radio input
In the html code below how can i select the last radio input element tried
$('#div1 > :radio :last-child')
$('#div1 > :radio input:last-child') both don't work.
Any ideas, without necessarily adding a class to the specific radio input.
NB: the number of input elements are dynamic, I just want to select the last radio input element
<div id='div1'>
<input type='text' />
<input type='radio' />
<input type='radio' />
<input type='text' />
</div>
Benson Njonjo
Web Developer
http://www.verviant.com
http://www.verviant.com/portfolio