javascript - Set textbox value by array index and name attribute using jquery -


$("[name=imageheight]") return following array of textboxes

enter image description here

i know can value of textbox index like

enter image description here

how set value of textbox on index 0. have tried gives me error

enter image description here

$('input').eq(0).val("new value")
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <input type="text" />


Comments

Popular posts from this blog

php - isset function not working properly -

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -