How to multiple filter list using jquery/javascript
<p>I have a html where I can filter based on their data but I don't know how to combine it.</p>

<p>This is my script and the search name is working already but the radio button <code>isActive</code> still not working and need to add on my filter. I don't know how to and it on filter.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$('input[type=text][name=search_name').on('input', function(e) {
  e.stopPropagation();
  e.preventDefault();

  var fullname = $(this).val();
  var isActive = $('input[type=radio][name=isActive]').val();
  searchStudent(fullname, isActive);
});

$('input[type=radio][name=isActive]').on('change', function(e) {
  e.stopPropagation();
  e.preventDefault();

  var fullname = $('input[type=text][name=search_name').val();
  var isActive = $(this).val();
  searchStudent(fullname, isActive);
});

function searchStudent(fullname, isActive) {
  $("ul li").each(function() {
    // I don't know how to add the isActive
    if ($(this).data('fullname').search(new RegExp(fullname, "i")) &lt; 0) {
      $(this).hide();
    } else {
      $(this).show();
    }
  });
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;div&gt;
  &lt;input type="text" name="search_name"&gt;
  &lt;span&gt;&lt;input type="radio" checked="" autocomplete="off" value="2" name="isActive"&gt; All&lt;/span&gt;
  &lt;span&gt;&lt;input type="radio" autocomplete="off" value="1" name="isActive"&gt; Active&lt;/span&gt;
  &lt;span&gt;&lt;input type="radio" autocomplete="off" value="0" name="isActive"&gt; Inactive&lt;/span&gt;
&lt;/div&gt;

&lt;ul&gt;
  &lt;li data-fullname="Jerald Patalinghug" data-firstname="Jerald" data-lastname="Patalinghug" data-isActive="1"&gt;Jerald Patalinghug&lt;/li&gt;
  &lt;li data-fullname="Eldrin Gok-ong" data-firstname="Eldrin" data-lastname="Gok-ong" data-isActive="1"&gt;Eldrin Gok-ong&lt;/li&gt;
  &lt;li data-fullname="Uelmar Ortega" data-firstname="Uelmar" data-lastname="Ortega" data-isActive="0"&gt;Uelmar Ortega&lt;/li&gt;
&lt;/ul&gt;</code></pre>
</div>
</div>
</p>

<p>so when I choose <code>all = 2</code>, then I will see all people, <code>active = 1</code> I will see the active, then <code>inActive = 0</code> to see the inactive people.</p>