By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

To get complete html of page except few divs with particular class

P: 23
I want to get complete html of page in javascript except few div's with particular class applied on them.I am using this to get the complete html of my document
Expand|Select|Wrap|Line Numbers
  1. $(window.document.documentElement).html().toString()
Aug 8 '12 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 10K+
P: 12,430
Substring out the parts you don't want.
Aug 8 '12 #2

Expert Mod 5K+
P: 5,390
either that or traverse through all elements of the page and collect only those u want.
Aug 9 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.