Hi, I am trying to set class to a variable. My code is:
var vtxt = $(this).attr("id");
$("('" + vtxt + "')").addClass("on");
It does not work this way. I've tried several things with no luck. What is the right format for adding a setting class to a variable?
Thank you