title: how to pull information out of html with javascript
body: <p>I have this set of code that will be links to sections of the hta page:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;Windows 10&lt;/strong&gt; comes with a new design and features.&lt;/li&gt;&lt;br&gt;&lt;br&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href="#" class="startLinks" id="Edge"&gt;Microsoft-Edge&lt;/a&gt;&lt;/strong&gt; has been introduced as Microsoft's next generation web browser.&lt;/li&gt;&lt;br&gt;&lt;br&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href="#" class="startLinks" id="Skype"&gt;Microsoft Skype for Business&lt;/a&gt;&lt;/strong&gt; is the Lync that you know . &lt;/li&gt;&lt;br&gt;&lt;br&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href="#" class="startLinks" id="FindPrinter"&gt;Printer list&lt;/a&gt;&lt;/strong&gt; ........... &lt;/li&gt;&lt;br&gt;&lt;br&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href="#" class="startLinks" id="Email"&gt;Email Signature&lt;/a&gt;&lt;/strong&gt; ........... &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I want Microsoft edge, Microsoft skype for business, printer list, and Email signature to be the links and depending on which link is clicked the JavaScript will use <code>slider.gotoslide(x)</code> here:</p>
  
  <pre><code>    $('div.Welcome a').click(function(){
          var itemClicked = 'div.Welcome a';
          if (itemClicked.index() === 0){  //Microsoft Edge
              slider.goToSlide(6); //slide 6
          }
          else if (itemClicked.index() === 1) { //Microsoft Skype for Business
              slider.goToSlide(10); //slide 10
          }
          else if (itemClicked.index() === 2) { //Find and Add Printers
              slider.goToSlide(15); //slide 15
          }
          else if (itemClicked.index() === 3) { // Email Signature
              slider.goToSlide(11); //slide 11
          }
          return false;
      });
  </code></pre>
  
  <p>As you can see I need the <code>div.welcome a</code> to give me which link was clicked on and then the if statements to tell me which slide to go to. However index is saying that </p>
  
  <blockquote>
    <p>Object doesn't support property or method "index"</p>
  </blockquote>