onclick event

I would like to call a function from a onclick event on an anchor (or any element) but BSS won't allow it. It never puts the attribute in the anchor. If this is by design then what is the proper way to achieve this?

This is what you should do. https://bootstrapstudio.io/forums/topic/issue-in-adding-custom-attributes-to-objects/#post-624

You add an ID to the link, then in a custom JS file you add an onclick event targeting that ID

< a id="testClick" href="#">link< /a>

$(function(){
  $("#testClick").click(function(e){
    e.preventDefault(); //stops the link from doing it's normal thing
    alert("clicked");
  });
});

Saj