Questions tagged [jquery-load]

The .load() method in jQuery provides the ability to load content into the selected elements.

The .load() Load data from the server and place the returned HTML into the matched element.

.load( url [, data ] [, complete ] )

This method is the simplest way to fetch data from the server. It is roughly equivalent to $.get(url, data, success) except that it is a method rather than global function and it has an implicit callback function. When a successful response is detected (i.e. when textStatus is "success" or "notmodified"), .load() sets the HTML contents of the matched element to the returned data. This means that most uses of the method can be quite simple:

Example:

$( "#result" ).load( "ajax/test.html" );
318 questions
-1
votes
1 answer

jQuery ajax load event not working

I am attempting to load in another part of a site into a div using jQuery's ajax's load event. Long story short--it isn't loading anything. I have tried using a link with a click event (for testing purposes). Here is the jQuery code:
Jonathan Moriarty
  • 498
  • 2
  • 5
  • 13
-2
votes
1 answer

jQuery.get() div html data from external page

When we use jQuery load() we can define a DIV on the external page we want to load into our content. Is there a similar way to get the html data from a specific DIV from an external page? Something like this? var url = someurl; var div =…
elbatron
  • 675
  • 3
  • 16
  • 30
-4
votes
1 answer

Jquery - load() multiple times

I have the following code:
1 2 3
21
22