I have used pqselect for my website. It works very good but I have 2 question need your help.
First, how can i disable several option?
Second, how can i select several option after select control was created?
This's my jquery code:
$("#selectUserSameRole").append(optListUser); //variable "optListUser " I get from server.
$("#selectUserSameRole").pqSelect({
multiplePlaceholder: '-- Select user --',
checkbox: true //adds checkbox to options
}).on("change", function(evt) {
var val = $(this).val();
document.getElementById('lstSelectedSameRole').value = val;
}).pqSelect('open');
Dear everyone,
I have used pqselect for my website. It works very good but I have 2 question need your help.
First, how can i disable several option? Second, how can i select several option after select control was created?
This's my jquery code:
$("#selectUserSameRole").append(optListUser); //variable "optListUser " I get from server. $("#selectUserSameRole").pqSelect({ multiplePlaceholder: '-- Select user --', checkbox: true //adds checkbox to options }).on("change", function(evt) { var val = $(this).val(); document.getElementById('lstSelectedSameRole').value = val; }).pqSelect('open');
Tks all.