Possible Duplicate:
jQuery method to select a subset and also its inverse?
given this javascript code
var radio_buttons = $('.search-options input[type="radio"]');
I want to get only the checked radio button from the collection of radio buttons that the variable holds. I thought that the find method could help achieving that, but it doesn’t.
radio_buttons.find('input[checked]')
Any other way to do it?
You should use
filtermethod and:checkedselector: