title: Getting value from HTML and Passing to AJAX Function
body: <p>I have an HTML code here: </p>
  
  <pre><code>&lt;ul class="nav nav-tabs inner-tab"&gt;
      &lt;li class="in-tab active" value="1"&gt;&lt;a href="#" data-toggle="tab" "&gt;Tab1&lt;/a&gt;&lt;/li&gt;
      &lt;li class="in-tab" value="0"&gt;&lt;a href="#" data-toggle="tab"&gt;Tab2&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>And here's an AJAX function:</p>
  
  <pre><code>var display = function display() {
      $.ajax({
          url: 'db.php',
          type: 'GET',
          dataType: 'JSON',
          data: {action: 'getAds', },  //something to pass the value of li class= "intab"
          success: function (data) {
             //something
          }
      });
  }
  </code></pre>
  
  <p>Now my problem is, how can I pass the value of the class "in-tab" to be processed in the getAds function in db.php? Thanks in Advance!</p>