Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple occurences of a select box

Status
Not open for further replies.

Chucklez

Programmer
Jul 25, 2002
104
US
First off, I am a newbie when it comes to html coding, so please be patient with me.

I have a form, and it has 10 occurences of the EXACT SAME select box. Each select box has 30+ elements. I dont like to have my code all cluttered and everything, so I was wondering if there was a way I could include 'call' out to somewhere else to retreive the options for my code. It just seems like it would take alot of room if it was repeated 10 different times.

Any suggestions?
 
The only way around this would be to use client-side scripting to duplicate one set of options... however, this would fail if the user has scripting disabled, so is not advisable.

Maybe you could re-architect your pages so that such a bandwidth-hungry solution isn't necessary?

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top