I am having a JavaScript function where the classname comes as a parameter. So i want to toggle() the specific class name which came in the parameter. How should i do this? I tried like this but it doesnt work.
function hideclass(classval){
$("#divname.classval").toggle();
}
try this
or