title: How to get the value of current tab in jquery step usign getCurrentIndex?
body: <p>I am trying to get the value of current tab using jquery, but I am stuck at very strange error.</p>
  
  <pre><code>
  console.log("Super Outside")
  console.log($("#example-vertical").steps("getCurrentIndex"))
  $("#example-vertical &gt; div.actions.clearfix &gt; ul &gt; li:nth-child(2) &gt; a").click( function() {
    console.log("Outside")
    console.log($("#example-vertical").steps("getCurrentIndex"))
   if ($("#example-vertical").steps("getCurrentIndex") == 3 ) {
      console.log("Inside")
  }
  })
  </code></pre>
  
  <p>According to the code I am trying to get the value of current Index and whenever it reaches the value of 3 I want to do display something by adding a css class.</p>
  
  <p>My code above gives me back this result.</p>
  
  <pre><code>Super Outside
  0
  Outside
  (index):1150 Uncaught TypeError: $(...).steps is not a function
      at HTMLAnchorElement.&lt;anonymous&gt; ((index):1150)
      at HTMLAnchorElement.dispatch (jquery-3.4.1.js:5237)
      at HTMLAnchorElement.elemData.handle (jquery-3.4.1.js:5044)
  </code></pre>
  
  <p>It has a value outside my selector but it doesn't have any value inside the selector.</p>
  
  <p>How can I get the value inside my click event?</p>