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
Post a Comment