I have an array of element id's and would like to check for the type of element for further processing. My test for select, text, hidden and password work fine but not for radio. Here is roughly what I use for each.
if($('#elemID').is('select')) then do stuff... this works.
if($('#elemID').is('input:text')) then do stuff... this works.
if($('#elemID').is('input:hidden')) then do stuff... this works.
if($('#elemID').is('input:password')) then do stuff... this works.
if($('#elemID').is('input:radio')) then do stuff... this does **NOT** work.
Any ideas on how to successfully test the element with element ID of elemID for a radio button would be greatly appreciated.