sirtemplar wrote:
$('#x_contact_type').change(checkState);
- if you have added a custom attribute, there is no such need to add the above line. And there is syntax error, refer to jquery .change().
function checkState() {
var x_contact_type = $('select').val();
- use
var value = $('#x_contact_type').val(); // it is for add page not grid add and to get contact_type value
alert(value) if you are not sure the content.