jquery get custom attribute 1

jquery get custom attribute

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

Here is what the above code is Doing:
1. It’s getting the value of the radio button that is checked.
2. It’s getting the value of the radio button that is checked and getting the value of the xmlvalue attribute.

Similar Posts