I\'d like to pass the ID of an element into a function which then calls jQuery. However, I\'m stumped as to how to actually take the ID variable and concatenate it with othe
Just do this--
myfunction('obj') function myfunction(obj){ $('#'+obj+' img').show(); }
Or, even
myfunction($('#2 img a')); myfunction(jqobj){ jqobj.show(); }