title: Assign value to a variable in jquery
body: <p>How do i assign a value to a variable in Jquery </p>
  
  <pre><code>    {var c2;
      $(c2).val("standard_desc");
      alert (c2);
      $('#ANDCriteria2').val(c2); 
  
      } 
  </code></pre>
  
  <p>I am trying to set variable's value, it will be static. In next line i am trying to set dropdown's selected value using same variable. I know i can just type</p>
  
  <pre><code>$('#ANDCriteria2').val("standard_desc");
  </code></pre>
  
  <p>But i have different requirement, please guide.</p>