Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] accessing javascript array value inside the select tag


  • From: javascript@xxxxxxxxxx (Sumit Jaiswal)
  • Subject: [Javascript] accessing javascript array value inside the select tag
  • Date: Mon, 30 Dec 2002 09:36:25 +0530 (IST)

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@xxxxxxxxxxxx>
> To: <javascript@xxxxxxxxxx>
> 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@xxxxxxxxxx
> > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> >
> 
> 
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 


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