inputエレメントつくる

By in 工事中エリア on 2013/07/14

https://developer.mozilla.org/ja/docs/Web/HTML/Element/Input


結果


ソース

<div id=”test2″></div>
<script type=”text/javascript”>// <![CDATA[
document.getElementById(“test2″).appendChild(document.createTextNode(“”));
Element.prototype.att=function(n,v){this.setAttribute(n,v);return this};
Element.prototype.apto=function(c){c['appendChild'](this);return this};
document.createElement(“input”).apto(document.getElementById(“test2″));
// ]]></script>

Comments are closed.