var userType = $("input[name=ctrl_CustomerType]:checked").attr('xmlvalue'); alert("xmlvalue is: " + userType);