<body>
<!--<input id="ra_id" type="radio" name="ra" onclick="check()"/>
<label for="ra_id">同意</label>
<input id="ra_id2" type="radio" name="ra" onclick="check()"/>
<label for="ra_id2">不同意</label><br />
<input type="button" value="提交" id="submit" disabled/>
<script>
function check(){
// alert("能用");
var yes = document.getElementById("ra_id");
var no = document.getElementById("ra_id2");
var sub = document.getElementById("submit");
if(yes.checked){
sub.removeAttribute("disabled");
}
if(no.checked){
sub.setAttribute("disabled","disabled");
}
}
</script>-->
<!--timeout()-->
<!--<span id="time">10</span>
<input type="button" value="下一步" id="next" disabled="disabled" />
<script>
function shijian() {
var seconds = document.getElementById("time").innerText;
seconds = parseInt(seconds);
if(seconds <= 0) {
document.getElementById("next").removeAttribute("disabled");
} else {
seconds--;
document.getElementById("time").innerText = seconds;
}
}
// window.setTimeout("shijian()",2000);
for(var i = 1; i < 12; i++) {
window.setTimeout("shijian()", i * 500);
}
</script>-->
<!--<script>
function time(){
alert("可以");
}
window.setInterval("time()",2000);
</script>-->
<ol id="ol1">
<li>起始值</li>
</ol>
<select size="7">
<option>111111111111</option>
<option>1</option>
<option>1</option>
<option>1</option>
<option>1</option>
</select>
<input type="text" id="txt" />
<input type="button" value="添加" id="btn" onclick="add()" />
<script>
function add() {
var txt = document.getElementById("txt").value;
var ol = document.getElementById("ol1");
ol.innerHTML += "<li>" + txt + "</li>"
}
</script>
</body>