Page 1 of 1

trap click even on dropdown

Posted: 2016-07-12 17:30
by grimblefritz
What's the correct jquery to trap the change/click event of an AppGini-created dropdown?

I have a field 'method' that uses an option list of 'Box;;Truck;;Trailer'. I want to hide/show fields based on the current value of the dropdown.

Code: Select all

$j('#method').click(function(){
  //show/hide code here
  alert('You clicked a method');
});
That doesn't trigger the alert dialog when method is changed.

Re: trap click even on dropdown

Posted: 2016-07-14 14:21
by grimblefritz
Solved it.

Code: Select all

$j('#method-container').on('click', function(){
  //show/hide code here
  alert('You clicked a method');
});
[code]

Re: trap click even on dropdown

Posted: 2019-11-22 21:18
by Moh Youba
Hello

I have the same problem, can you please share your code?

Thank you