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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -