Refresh/reload the content in Div using jquery/ajax

 $("#mydiv").load(location.href + " #mydiv");

 

Always take note of the space just before the second # sign, otherwise the above code will return the whole page nested inside you intended DIV. Always put space.

Belum ada Komentar untuk "Refresh/reload the content in Div using jquery/ajax"

Posting Komentar

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel