Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is trigger "liszt:updated" in jQuery?

Tags:

jquery

I was following the answer here: Jquery's Chosen plugin with Chained plugin and select box

And I found a line that I just don't follow - as I don't understand what 'liszt:updated' means - I can't find many references to this online to explain.

Specifically in the code:

 $("#budget").trigger("liszt:updated");

What does 'liszt:updated' in jQuery mean?

like image 766
fakeguybrushthreepwood Avatar asked Sep 17 '13 14:09

fakeguybrushthreepwood


1 Answers

liszt:updated is just a custom event that Chosen was using at the time. It is not a standard event, so you won't find anything on the web about it.

Moreover, Chosen itself doesn't use that event name any more (they're using chosen:updated now ), which would make it even more difficult to find any references to it.

See here: How do I reset a jquery-chosen select option with jQuery?.

like image 193
Joseph Silber Avatar answered Nov 06 '22 12:11

Joseph Silber