Probably something simple so sorry!
Currently, I have <button id="pin">Get pin</button>
and it works. (there is a script later on that this calls).
But, I want it to work on some text - preferable an <a href>
as the styles are set up on this - so something like <a href="pin">Get pin</a>
- obviously this would not work so would like to know how to get it to work! :)
I am trying to get it to run the below when clicking it:
<script>
$("#pin").click(function() {
swal("Your support pin", "Your support pin is: {$support_pin}", "info")
});
</script>
Thanks