jquery set selected for select element

//1
$("#Provider_" + counter + " option[value=" + FormData.ID + "]").attr('selected', 'selected'); //2
$("#Provider_" + counter + " option").filter(function () {
return $(this).val() == FormData.ID;
}).prop('selected', true); //3
$("#Provider_" + counter + " option").filter(function () {
return $(this).val() == FormData.ID;
}).attr('selected', true);
上一篇:php多进程 防止出现僵尸进程


下一篇:php多进程防止出现僵尸进程