2011-04-29 40 views

回答

0

你可以通過Javascript實現這一點。

僞代碼:

var options = document.getElementByTagName("options") //this will get all options 

或使用

var option = document.getElementByID("dropdown").options 

迭代通過選項和動態內容添加到表。 您可以參考http://www.codeproject.com/KB/HTML/html.aspx來獲得動態添加行的幫助。

+0

沒關係我找到了更好的方法,因爲我要將選項標記的內容插入到mysql中,我編輯了html並將其製作爲xml。所以現在應該很容易... – amir 2011-04-29 12:57:16

相關問題