Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

198
Views
Triggering jquery chosen change event is undefined

I am trying to fire a change event for chosen js. The <select> is getting updated but when chosen.change is fired. The variable is undefined. If i manually select something from the select the variable is defined. It fires when I use the select box but not when the page loads after I fire $('#js').val('Dojo Toolkit').trigger('chosen:updated');. I created a fiddle.

$(".chosen-select").chosen().change(function(evt,params) { 
console.log(params);
});

$(".chosen-select").chosen({width: "20%"});
$('#js').val('Dojo Toolkit').trigger('chosen:updated').change();
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!