How to integrate onclick function?

Hello Guys

I need to have this syntax :

<a class="btn btn-primary" onclick="goToCreateFixedSize('toile-canvas-chassis')" href="#" role="button">

How can I add the onclick function ?

It seems the onclick function has been disabled and here is the recommandation :

Add JavaScript/jQuery code

$("#button-id").click(function(){ goToCreateFixedSize('toile-canvas-chassis') })

Where can I find tutorial about adding jQuery for multiple pages inside BS ?

you can do it like this in javascript

if you like jQuery have a look here

1 Like