title: Get text from link use jQuery
body: <p>I want to get text from link <code>&lt;a class="active"&gt;...&lt;/a&gt;</code> which was created by tab-slider in wordpress like in the picture.</p>
  
  <p><a href="https://i.stack.imgur.com/7ESNS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ESNS.png" alt="enter image description here"></a></p>
  
  <p>here are my jquery </p>
  
  <pre><code>    jQuery(document).ready(function(){
          var text = jQuery('.mk-tab-slider-nav a.active').text();
          alert(text + "");
      });
  </code></pre>
  
  <p>only if I use <code>jQuery('.mk-tab-slider-nav a')</code> it has all the texts from all <code>&lt;a /&gt;</code>.</p>
  
  <p>but it just get empty when I use <code>'.mk-tab-slider-nav a.active'</code> or <code>'.mk-tab-slider-nav .active'</code> or <code>'.mk-tab-slider-nav:first-child'</code> just to check it gets empty also. </p>
  
  <p>Please help me, what could happen to <code>&lt;a /&gt;</code> that cause we can not get text by <code>.text()</code></p>