jquery - Stripping content from HTML page returned through ajax -
is there way display specific text out of html page returned ajax call? specific text, mean first paragraph/div of html page returned.
by using $.load in jquery, able fetch page. how proceed here.
is possible implement using jquery alone, without parsing html @ end , , returning selected text response server.
.load() accepts selector can used specify fragment of page appended
$('#x').load('page.html div:eq(0)')
demo: plunker
Comments
Post a Comment