properties button

flavio.goedert
1 Posts
flavio.goedert posted this 4 weeks ago
Ask a Question

hello

I would like to add an ID to the button, but I can't find the properties of the button that have this option, could you help me?

hello I would like to add an ID to the button, but I can't find the properties of the button that have this option, could you help me?
Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 4 weeks ago

Hello Flavio,

The Nicepage does not support the custom ID attribute on the Button. And not only Nicepage, no one can add a second ID in the coding, because In HTML, an element can only have one unique ID attribute. IDs are meant to be unique identifiers for elements within a webpage. It must be one, and unique, for example, if you use myNetId on the 7th line, you can not use this ID on the 10546th line of coding if they are global. It causes errors. Coding blocks this.

And finally, why do you want to add ID on the button? If you need to catch the button from JS, you can add a class name and then catch by class name from JS, you do not need an ID at all.

If you have any more questions or need any further assistance, feel free to ask!
...................................................
Sincerely,
George.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Flavio, The Nicepage does not support the custom ID attribute on the Button. And not only Nicepage, no one can add a second ID in the coding, because In HTML, an element can only have one unique ID attribute. IDs are meant to be unique identifiers for elements within a webpage. It must be one, and unique, for example, if you use myNetId on the 7th line, you can not use this ID on the 10546th line of coding if they are global. It causes errors. Coding blocks this. And finally, why do you want to add ID on the button? If you need to catch the button from JS, you can add a class name and then catch by class name from JS, you do not need an ID at all. If you have any more questions or need any further assistance, feel free to ask! ................................................... Sincerely, George. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments