title: jQuery If statement - variable from a php post - then do this
body: <p>I'm trying to compare a variable that contains text from a php file. data1 will only either contain "Active" or "Inactive" as returned back by php. I've tried so many variations of things. I even tried getting the value of #activity to see if it equaled "Active".</p>
  
  <pre><code>var url = "A_jq.php";
  $.post(url, { state2 : str }, function (data1) {            
      $("#activity").html(data1).show();
      console.log(data1);
      if (data1 == "Active") { $("#add").show("slow"); }
  });
  </code></pre>