cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

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

jpadilla
6-Contributor

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
Top Tags