javascript - Chosen deselect on single selects and custom js -


i got 2 selectlists. second 1 displays child items of first one. if change first selectlist need reset second one, works fine:

$("#main_selectlist").chosen().change(function()    {            $("#sub_selectlist").val('').trigger("liszt:updated"); }); 

problem: deselection button (x symbol allready worked) on first selectlist dissapears when use above js. how can use js above , deselction feature together?


Comments