Must be an easy way to add tags to vast lists

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
Phpn00b5
Forum Newbie
Posts: 2
Joined: Sun Mar 13, 2011 8:24 am

Must be an easy way to add tags to vast lists

Post by Phpn00b5 »

I want to add say like 100 options to a drop down list.

But I cannot for the life of me find a way. It will take a long time to type <option> </option> etc for each record.

Anyone know of a good way to do it (program/online etc) I tried to google but I had no luck.


Thanks in advance
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Must be an easy way to add tags to vast lists

Post by social_experiment »

A database? (Took me two seconds to think of it :) )
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Must be an easy way to add tags to vast lists

Post by Weirdan »

assuming you have it one item on a line, regexp replacing start of line with '<option>' and end of line with '</option>' would do the job.
Post Reply