|
嗨, 大家好......想要请教高手. 我想要做一个 Dropdown List 或 ComboBox, 当user Select 的时候, javscript 会 display an image on the fly.
Preferable 用 document.createelement
因为, 那个dropdownlist, after user 做selection, 会display plaintext in textarea 或 image de.
There is a dropdownlist on top, item and value are [Plain Text, Graphical, Custom1, Custom2]
1 .当 user select Plain Text, 就会load from DB using XMLHTTPRequest 或 so-called Ajax.
2. 当 user select Graphical, 就会load image from Virtual Path/or file path, 但是 textarea with Plain Text 必须 disappear
Case 1: Done, Case 2: Pending |
|