hello,
i am using jqwidgets. i have one problem with check boxes. when variable is empty then checkbox should be checked. and when variable is not empty then checkbox should not be checked. plz help me. my code:
editable: true,
columns: [
{ text: ‘Employee Name’, editable:false, datafield: ‘EmployeeName’, width: 250},
{ text: ‘Basic Salary’, editable:false, datafield: ‘BasicSalary’, width: 100 },
{ text: ‘Petrol Allowance’, editable:false, datafield: ‘PetrolAllowance’, width: 100 },
{ text: ‘Iban No’, datafield: ‘IbanNo’, editable:<?php print ($editflag) ?>, width: 200 },
{ text: ‘Is Cash’, datafield: ‘IsCash’, columntype: ‘checkbox’,width: 80 },
{ text: ‘Basic Salary’, editable:false, datafield: ‘EmployeeBasicSalary’, width: 100 }
]
});
});
above when IbanNo(4th row) is empty IsCash(5th row checkbox) should be checked. in the same way when IbanNo is not empty IsCash should be unchecked.
Thank you