By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,670 Members | 1,462 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,670 IT Pros & Developers. It's quick & easy.

How to create dropdown list?

P: n/a
Hi

I'm using this code to change a table cell into text input:
pole=document.createElement("input");
pole.type="text";
pole.size="40";
pole.value=""+opis;
pole.id="opis"+id;
pole.name="opis"+id;
pole.className="guzik1";
document.getElementById("opis"+id).replaceChild(po le,document.getElementById("opis"+id).childNodes[0]);

This works ok but what i need is to change another table cell into dropdown
list with 6 options
(table cell has its id)
Is it possible to do it in similar way?

Thanks for help.
Leszek
Aug 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Leszek wrote:
Hi

I'm using this code to change a table cell into text input:
pole=document.createElement("input");
pole.type="text";
pole.size="40";
pole.value=""+opis;
pole.id="opis"+id;
pole.name="opis"+id;
pole.className="guzik1";
document.getElementById("opis"+id).replaceChild(po le,document.getElementById("opis"+id).childNodes[0]);

This works ok but what i need is to change another table cell into dropdown
list with 6 options
(table cell has its id)
Is it possible to do it in similar way?
Yes, but use new Option():

<URL:
http://groups.google.com.au/group/co...b346a2775d8511
>
--
Rob

Aug 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.