[jQuery] Variable in selector
[jQuery] Variable in selector
I'm trying to hide an image, and I have the id of that image in a
variable (imgToShow). Here's what I'm trying:
$("#"+imgToShow).show();
This is not working. What am I doing wrong?
Topic Participants
andreas