obtener el valor de identificación por índice usando el nombre jquery
html
<input id="1" name="myText" type="text" value="20"/>
<input id="2" name="myText" type="text" value="30"/>
<input id="3" name="myText" type="text" value="40"/>
¿Cómo puedo obtener el valor de identificación porindex
usando nombre?
El siguiente fragmento de código no funciona
var getVal = $('[name="myText"]').index(1);