I'm having trouble trying to get the value of a select box using jquery
<select id='form[1]' name='form[1]'>
<option val='1'>1</option>
<option val='2'>2</option>
</select>
I tried:
$('#form[1]').val()
and
$('#form\\[1\\]').val()
But no luck
It ended up working for me, I would post it as an answer, but I can't for 8 hours
var num = $(".forms").attr('name', 'form[1]');
$(num[0]).val();
thank you for your help
source
share