show/hide based on dropdown

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
danielc
User
Posts: 1599

Re: show/hide based on dropdown

Post 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.


Post Reply