I’m trying to use .html() or .contents() but i have strange behaviours
I basically need to get the entire dom of the page, exclude some elements (ex. #first, #second)
and the pass it as a string, not a dom anymore…
is it possible?
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.
You can clone it, remove the elements you want to exclude from the clone, and then return the clone’s html: