ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: ketkigaur on March 22, 2021, 11:12:40 pm

Title: remove dropdown selected value
Post by: ketkigaur on March 22, 2021, 11:12:40 pm
HI,

How can I remove selected dropdown value and default it back to empty selection. I am using init method( ui.$editor.on('change', function()) to call another method and based on returned value from that , dropdown selected value should get changed to default empty value.
Title: Re: remove dropdown selected value
Post by: paramvir on March 23, 2021, 09:51:42 am
Code: [Select]
ui.$editor.on('change', function(){

if( some condition ){
$(this).val(""); //set it to empty.
}
});