onclick propery of button being scrubbed out.
I am trying to customize the design of my store. Specifically, I am trying to use a combination of styles, html, and script to change the way terms of use are displayed. Each section of the document is to be listed on a tab. Clicking that tab loads the relevant section. I have tested my styles, html, and script at w3schools.com, and everything works fine. Here is how I am trying to accomplish the task.
Custom CSS Code:
/* Style the tab */ HTML Code:
<div class="termtab"> Script Code:
function openSection(evt, sectName) { In the BO, with the affected page loaded for editing at Content -> Pages -> [page], the onclick property of my button tags is scrubbed after saving the page. By scrubbed, I mean that after saving the page, when I return to edit the page script, this is what is displayed... Code:
<button class="termtab-links">Section 1</button> Why is the onclick property being dropped? Without being able to use this method for controlling button click events, how else am I to control the behaviour of the buttons? |
Re: onclick propery of button being scrubbed out.
I resolved the issue by inserting the HTML elements into the database directly rather than using the HTML editor in the BO.
Code:
UPDATE `xc_page_translations` |
All times are GMT -8. The time now is 04:39 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.