PDA

View Full Version : Directly add an attribute as an element property



Rain Lover
02-14-2014, 02:14 PM
Here's how I change the value of an existing attribute:


element.attribute = "value"

But is it OK to use the above method to create a new attribute?