Remove the context of your selector:
http://jsfiddle.net/NrQek/1/
var userType = $("input[name=ctrl_CustomerType]:checked").attr('xmlvalue');
alert("xmlvalue is: " + userType);
Remove the context of your selector:
http://jsfiddle.net/NrQek/1/
var userType = $("input[name=ctrl_CustomerType]:checked").attr('xmlvalue');
alert("xmlvalue is: " + userType);