Reputation: 1131
I am not getting value of unselect option while text is getting
$('#f_profession').chosen().change(function (evt, params) {
alert($(this).text())
if (params.deselected) {
alert($(this).val())
}
});
Upvotes: 2
Views: 589
Reputation: 26
$(document).ready(function(){
$('#f_profession').chosen().change(function () {
$(this).find('option:not(:selected)').each(function(){
alert('Text : '+$(this).text());
alert('Value : '+$(this).val());
});
});
});
Upvotes: 1