var chk = "<div id='test'>Trying</div>";
alert($("#test",chk).html());
Well this JQuery by String is not working its so simple but it doesn’t work =/ What is it wrong in it ? thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try something like this:
The first parameter “#test” is your selector (what you really want to get).
And the second parameter chk is your context (within your query / search is performed).