I pass a function an xml variable: node.
function (node){
//how do I do this part:
$(node + ":contains('some_random_text')");
}
I want to find a sub node that has the random text.
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.
What you would have to do is pass in the xml as the
contextto what you are looking for:Otherwise it is looking for the match in your document;