1
드롭 다운 상자의 선택에 따라 채워진 표가 있습니다.
잘 작동하지만 사용자가 둘 이상의 항목을 선택할 수 있도록 다중 선택 가능하도록 드롭 다운을 수정해야합니다. 어떻게 할 수 있습니까?복수 선택을 사용하여 드롭 다운에서 표 채우기
HTML
<select name="prov_id" id="prov_id" multiple="multiple">
<option value="25_3″>agnico</option>
<option value="24_3″>agnico2</option>
</select>
SCRIPT
$myGrid.jqGrid(
{
url: myURL + '?method=GetTransactions', //CFC that will return the transactions
postData: {
prID: function() { return $("#prov_id option:selected").val(); },
mn: function() { return $("#month option:selected").val(); },
yr: function() { return $("#year option:selected").val(); }
},
//multiselect: true, //adds checkboxes in front of each line
//multiboxonly: true,
datatype: 'json', //We specify that datatype we will be using is JSON
colNames: [
'Trx ID',
'Description',
'Cheque No',
'Amount',
'Debit',
'Credit',
'Month',
'Year',
'Status',
'Added by Employee'
],
...