tags:

views:

1561

answers:

1

Hi folks,

How to add class for the ('div');

var new_row = document.createElement( 'div' );
+7  A: 
new_row.className = "aClassName";

EDIT: Heres more info on that property: className

Darko Z
Psst, you mean `new_row`.
Zarel
thanks Darko Z :)
bob
sorry, updated now. no probs bob
Darko Z