Friday, March 8, 2013

jQuery load(). Dynamic load content without refreshing page


How to upload file content from other file using jQuery load() function without refreshing page?
You can do it using only AJAX or shortcut from jQuery.

Downlod jQuery file from here and put in index.html file within<head> </head> or paste path to jQuery file in internet.



When you click "Get cars" link it calls function load().

1. File index.html - our main file


Get cars

    Place to load data from other file...
2. File cars.html - from this file content will be loaded.
  • Opel
  • Ford
  • BMW
  • Mercedes

No comments: