Sto cercando di fare il pannello di controllo di un sondaggio
codice javascript
codice:
<script>
function add_sintassi ()
{
if (document.getElementById && document.createTextNode)
{
spazio=document.createElement("br");
add_01=document.createTextNode("Risposta #6 ");
add_02=document.createElement("input");
add_02.setAttribute("type","text");
add_02.setAttribute("name","Risposta6");
add_02.setAttribute("maxlength","100");
add_02.setAttribute("style","width: 100%;");
document.getElementById("add_div").appendChild(spazio);
document.getElementById("add_div").appendChild(add_01);
document.getElementById("add_div").appendChild(add_02);
primo_a=document.getElementById("primo_a");
secondo_a=document.getElementById("secondo_a");
secondo_a.className=("secondo_a_class");
}
}
</script>