Replace html contents using jQuery

$('li').html('New HTML');  // this replaced all list items on your page with specified contents.

$('div').html('New Div Contents');  // this replaced all div contents on your page with specified contents.

$('body').html('New Body Contents'); // this replaced all contents of body part of your page.

$('p').html('New Paragraph contents'); // this replaced all paragraphs on your page with specified contents. 

Share this

Related Posts

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer