Author Topic: How can simulate a click on one of the options within the select?  (Read 3491 times)

fred

  • Newbie
  • *
  • Posts: 5
    • View Profile
Hi,

I am after some jquery that will trigger programmatically the `onchange`clause of the pqselect

I am loading some Ajax that fill in the select. Based on what is ticked, I need to run further Ajax that select more pqselect selectors. At the moment, I can tick all the options I need but I can not trigger the `onchange` clause .

Any ideas?

fred

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How can simulate a click on one of the options within the select?
« Reply #1 on: December 22, 2016, 09:44:35 pm »
This seems to do the trick.

Quote
$("#selector_id").change();