quick problem... cannot pass a selector via a variable
im trying to figure out how to pass a target selector via a variable
the simple example below dosnt work, i was wondering why when i pass the varible target into the slector it does not work...
-
var target = "#1 .preview";
$(target).addClass("hidden");
thanks for helping.