M
Mariano
I have this code, when it's called it print the HTML form written in
the form variables in a div called divForm, a simple Ajax.
function myFunc(){
var form, ris;
form = "<form action=\"#\" >Some text<br><br>";
form += "<input type=\"text\" name=\"valore\" value=\"aValue\"
onkeyup=\"ris = this.value\" />";
form += "<input type=\"submit\" name=\"act\" value=\"Send\" >";
form += ris;
form += "</form>";
var target = document.getElementById("divForm");
target.innerHTML=form;
}
Now I would that, every letter written in the input box, will be
replayed in the ris variable too and showed in the current page, i've
tried with onkeyup=" ris = this.value" but 'undefine' is always
returned to me.
Any ideas???
ty
the form variables in a div called divForm, a simple Ajax.
function myFunc(){
var form, ris;
form = "<form action=\"#\" >Some text<br><br>";
form += "<input type=\"text\" name=\"valore\" value=\"aValue\"
onkeyup=\"ris = this.value\" />";
form += "<input type=\"submit\" name=\"act\" value=\"Send\" >";
form += ris;
form += "</form>";
var target = document.getElementById("divForm");
target.innerHTML=form;
}
Now I would that, every letter written in the input box, will be
replayed in the ris variable too and showed in the current page, i've
tried with onkeyup=" ris = this.value" but 'undefine' is always
returned to me.
Any ideas???
ty