JavaScript dynamic element filtering functionality
I find that these all radio buttons are of same group , so you can use same name for all the radio button with different values .

&lt;input type="radio" name="displayOption" value="1" checked&gt; All
&lt;input type="radio" name="displayOption" value="2"&gt; Active....


Now in this case you dont have to add and remove active class for the radio buttons. It will handle it by itself. 

and write a common function like 

$("input[name='displayOption']").change(function(){
 if ($(this).val() === '1') {
      myFunction();
    } else if ($(this).val() === '2') {
      myOtherFunction();
    } 
});