Button inside the header of accordion to open modal popup

I have a buttom inside the header of accordion i need this buttom open a modal popup window via css, when i create a simple button on the page and apply in the css class (cp-modal-contact) it works perfectly

but i dont know how make this call from the html buttom inside the accordion

//button class=“btninterest” onclick=" window.open(’/cp-modal-contact/’,’_self’)"> I’m interested</button

THANK YOU FOR YOUR SUPPORT, YOUR HELP HAS NO PRICE TO ME

Hi Alver,

If the function to open the modal is on the class, just add it as normal class on the button.

<a href="#" class="btninterest cp-modal-contact">I'm interested</a>

Or the actual button tag
<button class="btninterest cp-modal-contact">I'm interested</button>

Hope this helps.

THANK YOU … YOU MAKE MY DAY BRIGHTER… it works perfect

You’re welcome. Alver. Glad we’re able to help.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.