Support Team
posted this
13 April 2024
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