I have a string passed to this function, it's an ID of an element. I need it to become a jQ object, is this the correct way of doing it?
passed to function: myfunct('gluk')
myfunct = function(t) {
var target = $(['#' + t]);
target.someMethod();
};
When I use straight $('#gluk').someMethod(); it work fine but not through the function above...
$('#' + t).