mmalik15
asked on
javascript onClick function not working
on this page One of the navigators "Associated Profession/Therapy" view more link not working while it works on other navigators. The javascript view more function is as below
Any ideas how to fix this?
function ViewMore(spacetId){
$("#" + spacetId + " li").each(
function(){
if($(this).children("a").hasClass("showAll"))
$(this).css("display", "none");
else if($(this).children("a").hasClass("showTop"))
$(this).css("display", "block");
else
$(this).show();
}
);
return false;
}
Any ideas how to fix this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Remove the slash the same way you removed the spaces for the others links.
Yes the same way
Yes the same way
ASKER
I can't change the slash in the navigator but can modify the script if this can be tackled.