How to get full html string including the selected element itself with jQuery's $.html()

Sometimes you need to get the selected element's html as well when using .html() function. To make it more clear what I mean, consider you have this HTML markup:


Some content

More content
And you need to get not only
Some con... but
Some con... Here is the code to get jQuery selector's HTML

Comments

Popular posts from this blog

Asus K52DE Specifications

Prince William and Kate Middleton