hi,
I am developing a system with asp.net and javascript.
I am creating a html table dynamically using a for loop in a javascript function. i have a button field in my table.
this is the code I use.
[CODE=javascript] btn=document.cr eateElement('in put');
btn.type='butto n';
btn.id=dset.val ue.Tables[0].Rows[a].BasicNo;
btn.style.width ="9";
btn.style.heigh t="9";[/CODE]
I want to apply a style sheet for this button. can I create the stylesheet inside the javascript.? if I have the stylesheet designed in a separate file (styles.css) in a separate folder , how can I apply it.
Thanks
Anushka
I am developing a system with asp.net and javascript.
I am creating a html table dynamically using a for loop in a javascript function. i have a button field in my table.
this is the code I use.
[CODE=javascript] btn=document.cr eateElement('in put');
btn.type='butto n';
btn.id=dset.val ue.Tables[0].Rows[a].BasicNo;
btn.style.width ="9";
btn.style.heigh t="9";[/CODE]
I want to apply a style sheet for this button. can I create the stylesheet inside the javascript.? if I have the stylesheet designed in a separate file (styles.css) in a separate folder , how can I apply it.
Thanks
Anushka
Comment