Hello
I am trying to toggle a checkbox externally, I have added a radio button for the moderators to mark posts. So when they select this radio button I want the action to be similiar to checking the checkbox eg the post going yellow.
I have tried the following code but for some reason it doesnt work:
Code:
obj = document.getElementById('plist_'+nPostId);
inlineMod.toggle(obj);
Any ideas what I am doing wrong?
There are no javascript errors, the screen just flashes and nothing happens.
figured it out
Code:
obj = document.getElementById('plist_'+nPostId);
obj.checked = true;
inlineMod.toggle(obj);