[Javascript] accessing javascript array value inside the select tag

Sumit Jaiswal sumit at davlin.co.in
Sun Dec 29 22:06:25 CST 2002


Sorry,
My question was confusing. It's like this :
I have a script like this :

<SCRIPT LANGUAGE="JavaScript">
<!--
var collegeName = new Array('NMAMIT','NIT','NIIT');
var collegeId = new Array('001','002','003','004');
//-->
</SCRIPT>

now i have a select tag in which i want to have 
<option value=collegeId[i]>collegeName[i]</option>
where i is the index of the array

----------------------------------------------
> what is a "html combo"?
> 
> ~ Terry
> 757 581-5981
> AIM/Yahoo: lv2bounce
> 
> 
> ----- Original Message -----
> From: "Sumit Jaiswal" <sumit at davlin.co.in>
> To: <javascript at LaTech.edu>
> Sent: Sunday, December 29, 2002 8:01 AM
> Subject: [Javascript] accessing javascript array value inside the html 
combo
> tag
> 
> 
> > hi,
> > I am new to the group. I would like to ask u the question of
> > How can I set the value of the Javascript array in the html combo.
> > Thank in advance for the help
> >
> > --
> > Sumit Jaiswal
> > Davlin Software Pvt Ltd .
> > 2nd Floor , Punja Building,
> > Lalbaugh , Mangalore
> > Ph 0824-451001,451005
> > --------------------------------------------------
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> >
> 
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 


-- 
Sumit Jaiswal
Davlin Software Pvt Ltd .
2nd Floor , Punja Building,
Lalbaugh , Mangalore
Ph 0824-451001,451005
--------------------------------------------------




More information about the Javascript mailing list