`
- 浏览:
355115 次
- 性别:
- 来自:
Wen Zhou
-
Select Tag's options process
xml 代码
- <html>
- <head>
- <script src="file:///E:\FrameWork\prototype\prototype-1.4.0\dist\prototype.js"></script>
-
- <script language="javascript">
-
-
- function f1()
- {
- var els=$('s1').getElementsByTagName('option');
- // 没有i++
- for(var i=0;i<els.length;){
- // alert(els[i].innerHTML);
- $('s1').removeChild(els[i]);
- }
- }
-
- function f2()
- {
- el1=document.createElement('option');
- el1.value="aa";
- el1.innerHTML="bb";
- $('s1').appendChild(el1);
-
- }
- </script>
-
- </head>
- <body>
- <select id="s1">
- <option>A</option>
- <option>B</option>
- <option>C</option>
- <option>D</option>
- </select>
-
- <input type="button" onclick="f1()" value="del">
- <input id="b2" type="button" onclick="f2()" value="add">
-
- <a href="create_opener_el.html" target="_blank" >asdf</a>
-
- </body>
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
Campaigns give you the ability to group feeds and select common options for them. So, if you ever decide to change a setting, all the feeds in that logical group will be affected. The best way to ...
Autocomplete of tags, attributes for current tag, closing tags. • HTML code inspector Inspector makes it simple to find HTML elements buried deep in the page. • CSS autocomplete Autocomplete of ...
-virtfs local,path=path,mount_tag=tag,security_model=[mapped|passthrough|none] [,writeout=immediate][,readonly] -virtfs_synth Create synthetic file system image -name string1[,process=string2] set ...
Autocomplete of tags, attributes for current tag, closing tags. • HTML code inspector Inspector makes it simple to find HTML elements buried deep in the page. • CSS autocomplete Autocomplete of ...
Autocomplete of tags, attributes for current tag, closing tags. • HTML code inspector Inspector makes it simple to find HTML elements buried deep in the page. • CSS autocomplete Autocomplete of ...
Autocomplete of tags, attributes for current tag, closing tags. • HTML code inspector Inspector makes it simple to find HTML elements buried deep in the page. • CSS autocomplete Autocomplete of ...
Each process’s virtual address space is split into user and system partitions based on the underlying operating system. The diagram included at the top represents the address partitioning for the 32...
usage: qemu [options] [disk_image] 'disk_image' is a raw hard disk image for IDE hard disk 0 Standard options: -h or -help display this help and exit -version display version information and exit -M...
The availability of drivers that support the features of the specification will simplify the process of developing Windows appli¬cation programs that in-corporate absolute coordinate input, and ...
- "Select Code Section(s)" to precise where is the code in the target - Fixed bug when loading imports file which contains Exact Call with ordinal - Debug stub scheme added (for getting API from an...
- re-implemented "options" parameter for additional options of connected devices (currently only used to set the speed reported by device and to specify an alternative redolog file of USB MSD disk ...
Searching is not case sensitive. <br>Drag and Drop <br>To use drag and drop, first select the desired range of lines by clicking on the starting line, then hold down shift and click the ending ...
Note that this directive does not control the <?= shorthand tag, which can be ; used regardless of this directive. ; Default Value: On ; Development Value: Off ; Production Value: Off ; ...
<END><br>28,ColorProgressBar.zip Replaces the standard progress bar with one that is on the order of O(n^2) times faster, with color options, and directional options.<END><br>29,MDITaskBarDemo.zip...
- ADD Added checkbox "Keep connector's link" in flex-document property form. - FIX Remaks panel focusing on main form (via PostMessage), since TreeInspector in FlexEditSE captures focus on self. - ...