[jQuery] Re: Passing a variable into the $('selector') function

2008-07-03 Thread Stompfrog
;, then $(msg) will > select it. > > If you think that's what you're doing and it isn't working for you, either > your id is wrong or msg doesn't hold what you think (maybe it has a trailing > \n?). > > --Erik > > On 7/2/08, Stompfrog <[EMAIL PROTECTED]&g

[jQuery] Passing a variable into the $('selector') function

2008-07-02 Thread Stompfrog
e data that gets passed back to the function from some.php is a string which is the id of the div that I want to manipulate in the callback function e.g. "#myDiv". My question is how can I get that div from the callback function using the msg variable because $(msg); doesn't work and neither does $ ("'"+msg+"'"); Thanks in advance, Stompfrog