<form onsubmit = "return checkForm(this)" method="POST" action = "">
<select name="user[11]">
<option value='1'>one</option>
<option value='2'>two</option>
</select>
<select name="user[12]">
<option value='1'>one</option>
<option value='2'>two</option>
</select>
</form>
I need to get select box values with keys (which i will use for update user)
im using below function
function checkForm(frm){
var inps = document.getElementsByName('user[]');
console.log(inps );// but its displaying blank nodelist
}
Please give your valueable suggestions