I want to use a variable in select of Jquery like following:
var elemName="student_"+student_id;
$("select[name=elemName]")[0].value=1
$("select[name=elemName]")[1].value=2
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.