jquery - Unable to get the correct innerHTML after AJAX load -
i updating innerhtml
of element through ajax
succesfully... when want same innerhtml
of element using .htm()
, not updated innerhtml...
it returns previous mark when document loaded.....
how solve this..?
instead of using html() try using inner html directly. i.e. instead of
var youobj = $(".someselector"); var html = yourobj.html();
do:
var youobj = $(".someselector"); var html = yourobj[0].innerhtml;
although admittedly both should give same result.
Comments
Post a Comment