Menu
Hello,
I am creating a input box in a javascript function.
The code I use is:
[CODE]var newInputElem = document.createElement(“INPUT”)
newInputElem.id = ‘TB_Time’
newInputElem.type = ‘text’
newInputElem.style.width = ’50px’
newInputElem.style.border = ‘1px solid’
newInputElem.onkeypress = ‘javascript:SaveEdit(this,’ + Mnum + ‘,”‘ + _ID + ‘”)’
cell.appendChild(newInputElem)
Everything is applied but the onkeypress. This is not aplied to the new edit and will therefor not be called.
Sorry for the beginner question, but I am new to javascript..
Thanks in advance
Shorty