html - jquery get can't find any good examples -


i have line of code in example.html there other code want bit

     <section>  should counted  </section> 

i have html page test.html want jquery gets piece of code , prints out onto test.html. cannot find decent website explains well. if knows of website or can give me explanation, more appreciated giving me answer

you can see example here:

http://jsbin.com/kayey/1/edit?html,output

first of you'll need make request file contents , then, set content of file "container" on test.html file:

$.get('example.html', function(response){     $('#content').html(response); }); 

all inside test.html file have div#content element or 1 want.

regards, hope works.


Comments

Popular posts from this blog

python 2.7 - Chat Solution for Mobile App -

jquery - Detect current Section with javascript -