title: Loading Text File into Div Using Jquery
body: <p>I created this script:</p>
  
  <pre><code>  &lt;script&gt;function txtload () {$(".divbody").load("maintxt/information1.txt");}&lt;/script&gt;
  </code></pre>
  
  <p>I am using links like this:</p>
  
  <pre><code>&lt;a href="#" onclick="ChangeImage(), txtload ()"&gt;Information 1&lt;/a&gt;
  </code></pre>
  
  <p>I need to change the script to create multiple href's loading different text for each link:</p>
  
  <pre><code>&lt;a href="#" onclick="ChangeImage(), txtload ()"&gt;Information 1&lt;/a&gt;
  &lt;a href="#" onclick="ChangeImage(), txtload ()"&gt;Information 2&lt;/a&gt;
  &lt;a href="#" onclick="ChangeImage(), txtload ()"&gt;Information 3&lt;/a&gt;
  &lt;a href="#" onclick="ChangeImage(), txtload ()"&gt;Information 4&lt;/a&gt;
  </code></pre>
  
  <p>Can you help? I tried removing the "" from the script and placing it in the href itself...don't have any idea what I'm doing...</p>
  
  <p>Think this should work. Please give me your input:</p>
  
  <pre><code>&lt;script&gt;function txtload () {$(".divbody").load("maintxt/" + filename);}&lt;/script&gt;
  
  &lt;a href="#" onclick="ChangeImage(), txtload ("information1.txt")"&gt;Information 1&lt;/a&gt;
  </code></pre>
  
  <p>Thanks!</p>