Hi,
What I wanted to do is to call a function from a newly created
element. But it stumbled me.
Here's the line that references the newly created element and I used
the alert function for debugging for now. Did I mess up all these
quotes?
// once again this is the key line of code, problem area, disregard
var i etc...
newTRc1.innerHT ML ='\<input type="text" name=q'+i+' size="60"\>;Typ e:
\<select name=qType'+i+ 'onchange="aler t(i);"\>\<optio n value="YN"
selected\>Yes/No\<option value="CK"\>Che ckbox\</select\><br\>';
Thanks.
What I wanted to do is to call a function from a newly created
element. But it stumbled me.
Here's the line that references the newly created element and I used
the alert function for debugging for now. Did I mess up all these
quotes?
// once again this is the key line of code, problem area, disregard
var i etc...
newTRc1.innerHT ML ='\<input type="text" name=q'+i+' size="60"\>;Typ e:
\<select name=qType'+i+ 'onchange="aler t(i);"\>\<optio n value="YN"
selected\>Yes/No\<option value="CK"\>Che ckbox\</select\><br\>';
Thanks.
Comment