Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to create a new attribute in an element via javascript in Editor?

jpadilla
10-Marble

How to create a new attribute in an element via javascript in Editor?

Hello All,

I want to retrieve the address.js that is given as a sample with the standard Editor install.

This javascript coupled with an html form allows you to populate address tag using the html form.

What I would like to do is create an elements structure and insert an attribute in one of the element.

I've found the setAttribute method in the help center.

Does anyone know how to use it?

Do you have any sample?

Thanks a lot in advance for your help,

Jérôme

0 REPLIES 0
Announcements

Top Tags