what if jquery toggle doesn't work?
alternative is to use plain javascript, doesn't behave as nice but it works.
function toggleCourseDescriptions(conditioner) {
var targetCtrl = document.getElementById("divCourseDescription");
var triggerControl = document.getElementById("aToggleCourseDescription");
if (targetCtrl.style.display == 'none') {
targetCtrl.style.display = null;
} else {
targetCtrl.style.display = 'none';
}
if (triggerControl.text == "-") {
triggerControl.text = "+";
} else {
triggerControl.text = "-";
}
}
No comments:
Post a Comment