|
But
My JS code is this var nums = 0;
var numss = 0;
function addquestions ()
{
nums + = 1;
numss = nums;
document.getElementById ("questionform"). innerHTML + = "<div id =\" question "+ numss +"\"class =\" questioncss\"> <br /> Question: <input id =\"" + numss + "\" name =\"questiontext\" style =\"position: relative\" type =\"text\" size =\"50\" /> <input name =\"addanswerdell\" type =\"button\" value =\"Add answer\" style =\"position: relative\" onclick =\"addanswers (" + numss + ")\" /> <input id =\"Radio1\" checked =\"checked\" name =\"checktype" + numss + "\" style =\"position: relative\" type =\"radio\" /> Radio <input id =\"Radio2\" name =\"checktype" + numss + "\" style =\" position: relative\"type =\" radio\"/> Multiple choices <br /> Answer <input name =\" answertext\"id =\" addanswerid "+ numss + style =\"position: relative\" type =\"text\" /> </ div> <br /> ";
}
function addanswers (o)
{var addid = "question" + o;
Ranch
document.getElementById (addid) .insertAdjacentHTML ("beforeEnd", '<br> Answer <input name =\"answertext\" style =\"position: = 1uouo" text\"/> ');
}
Is one question to bring many questions
How to enter the database |
|