Hi, I am using jquery choosen,Is it possible to this plugin to pass value via ajax after success then it will be selected directly...?


Code:
$.ajax({
  ......
  .....
  .....
  sucess:function(_dataval){
     var mychosen = $('.mychoosen').val();

    $('.mychoosen').each(function(){
       if(mychosen == _dataval){
         $('.mychoosen').val(_dataval);
      }

  });

}
  


});

but it's not working.


THank you in advance.