Closed MautassimAshrafAli closed 2 years ago
I fix it 👍
try {
$.each(data.roles, function (index, value) {
cb=document.querySelectorAll("#editForm input[type='checkbox'][value='"+value+"']");
for(i in cb) {
cb[i].checked=true;
}
});
} catch (r) {
alert(r);
}
I fix it 👍
try { $.each(data.roles, function (index, value) { cb=document.querySelectorAll("#editForm input[type='checkbox'][value='"+value+"']"); for(i in cb) { cb[i].checked=true; } }); } catch (r) { alert(r); }
Can you post your revised Users.cshtml? I am experiencing the same issue when a role name contains a space.
Edit btn in the first time I make role check it works but when I click in edit btn the second time the edit model does not show.