homepage Welcome to WebmasterWorld Guest from 54.227.5.234
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Directly add an attribute as an element property
Rain_Lover




msg:4645227
 2:02 pm on Feb 14, 2014 (gmt 0)

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?

 

Fotiman




msg:4645266
 3:21 pm on Feb 14, 2014 (gmt 0)

Yes.

Rain_Lover




msg:4645295
 5:03 pm on Feb 14, 2014 (gmt 0)

Thanks for the confirmation! :)
Just wanted to make sure.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved