Page 1 of 1

Re: show/hide based on dropdown

Posted: Wed Jul 24, 2013 12:43 pm
by danielc

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.