I have a page where the input type always varies, and I need to get the values depending on the input type. So if the type is a radio, I need to get which is checked, and if
You could do the following:
var inputType = $('#inputid').attr('type');