[thelist] DOM in IE

Eduardo Kienetz eduardok at gmail.com
Wed May 23 18:05:33 CDT 2007


In order to dinamically create a user-defined number of lines (with
input text in each line) in a table I used DOM. Everything works fine
in Firefox, however, in Internet Explorer:
frmnam = document.createElement('input');
frmnam.setAttribute('class','formbranco');

The setAttribute does not work, as the new input's end up with no style.
I tried google but this seems difficult to sort out.

How could I solve this?

Thank you in advance,

-- 
Eduardo Bacchi Kienetz
LPI Certified - Level 2
http://www.noticiaslinux.com.br/eduardo/



More information about the thelist mailing list