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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -