<script language=javascript>
var m_index = 0;
function add()
{
m_index++;
var oNewNode=document.createElement("option");
oNewNode.setAttribute("value", m_index);
oNewNode.innerText= m_index;
oNewNode.selected = true;
obj_select.appendChild ( oNewNode );
}
</script>
<input type=button onClick=javascript:add() value="add">
<select name=obj_select>
</select>
댓글 없음:
댓글 쓰기