Hi
I m creating a textbox dynamically on click of a button. I want to attach an onChange event for that textbox.I tried using following code but it does not seem to work.Can anyone suggest a better way to solve my problem. The code i am using is as follows:
[CODE=javascript] var cell1 = row.insertCell( 0);
var addRowTextNode1 = document.create Element('input' );
addRowTextNode1 .setAttribute(' type','text','n ame','UI'+iIter ation,'id','UI' +iIteration);
addRowTextNode1 .onChange=funct ion callChange(){al ert('Hi');};
cell1.appendChi ld(addRowTextNo de1);[/CODE]
Thanks
daitasri
I m creating a textbox dynamically on click of a button. I want to attach an onChange event for that textbox.I tried using following code but it does not seem to work.Can anyone suggest a better way to solve my problem. The code i am using is as follows:
[CODE=javascript] var cell1 = row.insertCell( 0);
var addRowTextNode1 = document.create Element('input' );
addRowTextNode1 .setAttribute(' type','text','n ame','UI'+iIter ation,'id','UI' +iIteration);
addRowTextNode1 .onChange=funct ion callChange(){al ert('Hi');};
cell1.appendChi ld(addRowTextNo de1);[/CODE]
Thanks
daitasri
Comment