$(document).ready(function(){
  var $card = $(".card").not(".cat-card");

  $card.on("click", function(){
    if (!($(this).hasClass("disabled"))){
      $card.not($(this)).addClass("disabled");
      $(this).addClass("chosen");  
      
    }
    
  });

});
@@ -107,21 +107,214 @@
     
-if (!($(this)
+$this = $(this);%0A    $question = $this.children().filter(%22.question%22).text();%0A    $answer = $this.children().filter(%22.answer%22).text();%0A    $value = $this.children().filter(%22.value%22).text();%0A%0A    if (!($this
 .has
@@ -355,15 +355,13 @@
 ot($
-(
 this)
-)
 .add
@@ -386,22 +386,20 @@
 %0A      $
-(
 this
-)
 .addClas
@@ -420,16 +420,23 @@
 %0A      %0A
+      %0A
     %7D%0A  

create variables for queries