simple jquery to load external content from div problem
<p>I found and tried to change a short bit of jquery code to load external content into an existing div that I can't get to work. The problem I'm having is trying to make the code more usable since I have many links on the page. I'm a novice so I'm trying to see if I could keep it simple and I don't know where the problem is. The bit of code I am trying to modify:</p>

<pre><code>$(function() {
  $('div[class="subNav"]').click(function() {
    $('#mainText').load$(this).attr('href'); 
       return false;
    });
});
</code></pre>

<p>mainPage.html has a div that wraps the main text of the page.</p>

<blockquote>
<pre><code>&lt;div id="mainText"&gt;Content Change Here&lt;/div&gt;
</code></pre>
</blockquote>

<p>I have multiple sub links (using an accordion menu &amp; javascript) on this page under a different div.</p>

<pre><code>&lt;div class="subNav"&gt;

    &lt;h3 class="heading"&gt;heading1&lt;/h3&gt;
    &lt;ul class="navListings"&gt;
      &lt;li&gt;&lt;a href="sub1a.html"&gt;link 1a&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="sub1b.html"&gt;link 1b&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="sub1c.html"&gt;link 1c&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;

    &lt;h3 class="heading"&gt;heading2&lt;/h3&gt;
    &lt;ul class="navListings"&gt;
      &lt;li&gt;&lt;a href="sub2a.html"&gt;link 2a&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="sub2b.html"&gt;link 2b&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;

    ....and so on......&lt;/div&gt;
</code></pre>

<p>All pages have the same mainText div for content. I just want to replace the mainText div on mainPage.html with the correct content from the sub-pages on click. Can someone help me? I'm guessing my code is a bit too simple....</p>

<p>I've tried many alternatives to the second line of code, but nothing works. I either get nothing to show up or the link just goes to page as if the script isn't even working. Thanks in advance to anyone that might be able to help...</p>
