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 content
More content
Some con... but
Some con... Here is the code to get jQuery selector's HTML
Comments
Post a Comment