title: Using variable in a select statement in Jquery
body: <p>I want to use a variable in select of Jquery like following:</p>
  
  <pre><code> var elemName="student_"+student_id;
   $("select[name=elemName]")[0].value=1
   $("select[name=elemName]")[1].value=2
  </code></pre>
  
  <p>But this above code is not working. I want to use the variable inside above select statement. So if anyone help me to do this , I will be really grateful. Thank you.</p>