Clickable column except for modal toggle

Hi

I have put a modal toggle on top of a clickable column, the problem is that when i try to click the modal toggle the clickable column also gets triggered. I would like the clickable column to be triggered everywhere except from clicking the modal toggle. How can I achieve it?

$('#forsaljning').on('click touched', function() {
	window.location.href = 'link'; });

Clickable coulm with toggle

Thank you!

Hey @utuwordpress,

Thanks for reaching out!

I tried to replicate your concerns on my development website, making the column clickable, and inside it, an element called modal. Then when clicking the modal, it doesn’t trigger the column link. That being said, I suspect that your JS is causing the issue on your website, please remove it and then test it again.

Just want to let you know that you can set the columns clickable without using any JS code. Here’s how:

Hope that helps.

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