java - loading multiple html textboxes in javascript -


i need load multiple values database. have used java load these values pass them textbox in html can load them in javscript portion of code.

since there no provision array in html, have appended 'i' in following code achieve purpose.

input type=text name=lat<%=i%> value="<%=l1%>"

so values lat1, lat2, lat3 , on.

how call them javascript without having write lat1,lat2 etc. seperately

//var a=document.f1.lat1.value;

basically how can replace '1' 'i' in above line

javascript bracket notation after

document.f1["lat" + i].value 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -