Im trying to populate check boxed base on the cfselect selection.
here is the function
function RoleLookup() { ColdFusion.Ajax.submitForm('UserAccessForm', 'UserLookup.cfm?role=true', roleCallback, errorHandler); }
here is the function to write to the check boxes
function roleCallback(text) { $('p#testing').html(text); var roleInfo = new Array(); roleInfo = text.split('|'); var roleInfoLength = roleInfo.length; for (var i = 0; i < roleInfoLength; i++) { $('input#grant_AppId' + i).prop('checked', true); $('input#revoke_AppId' + i).prop('checked', false); } }
I added the $('p#testing').html(text); to see if the first function was working and I do get results in text form but it not checking the check box.
any ideas????
Aucun commentaire:
Enregistrer un commentaire