JQuery : get HTML Content of object
We can get html content of Jquery object by using html(), this method will return child content of the object. So the workaround is wrap object into any element and get the element child :)
var html = $("<div>").append( $("#some_div").clone()).html();
Ok. That's obviously simple right ? Happy Coding!
1 komentar:
fyuh berguna juga nih contekan haha.
Posting Komentar