jquery get custom attribute

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

Also in JavaScript: