title: Loading data via ajax.load function using data-load error
body: <p>I have created anonymous function to load my data via ajax. Here is my code :-</p>
  
  <pre><code>jQuery(function(){
      jQuery("[data-load]").each(function(){
          jQuery("#"+jQuery(this).data('area')).load(jQuery(this).data("load"), function(){alert( "Load was performed." );});
      });
  });
  </code></pre>
  
  <p>Here is my HTML Code :-</p>
  
  <pre><code>&lt;div data-load="header.php" data-area="_page_1"&gt;
  &lt;span id="logo"&gt;Travel&lt;/span&gt;
  &lt;span id="_page_1"&gt;Link_1 Link_2&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am using <code>ajax load</code> function :- <a href="http://api.jquery.com/load/" rel="nofollow">http://api.jquery.com/load/</a></p>
  
  <p>Thanks</p>