Hi
I am creating a textbox dynamically on click of a button. I want to apply some styles to that textbox using a CSS file. How can i do that using javascript in a HTML page? The following is the code i am using .
[CODE=javascript]
var cell2 = row.insertCell( 1);
var addRowTextNode2 = document.create Element('input' );
addRowTextNode2 .type = 'text';
addRowTextNode2 .name = 'CN'+iIteration ;
addRowTextNode2 .id = 'CN'+iIteration ;
cell2.appendChi ld(addRowTextNo de2);
[/CODE]
Thanks
Daitasri
I am creating a textbox dynamically on click of a button. I want to apply some styles to that textbox using a CSS file. How can i do that using javascript in a HTML page? The following is the code i am using .
[CODE=javascript]
var cell2 = row.insertCell( 1);
var addRowTextNode2 = document.create Element('input' );
addRowTextNode2 .type = 'text';
addRowTextNode2 .name = 'CN'+iIteration ;
addRowTextNode2 .id = 'CN'+iIteration ;
cell2.appendChi ld(addRowTextNo de2);
[/CODE]
Thanks
Daitasri
Comment