setAttribute works in jsfiddle but not in my applcation

19 views Asked by At

Looking at http://jsfiddle.net/yt76xgk8/ I want to add cellSpacing and cellPadding to my code.

table.setAttribute('border', '5px');
table.setAttribute('cellpadding', '30px');

1) why is the border colour black instead of blue?

2) why does cellPadding work in jsFiddle on my google browser. But when I run the application it doesnt pick up. Tried with google and FF

0

There are 0 answers