Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1889

Joomla! 5.x Coding • Custom button calling Javascript function

$
0
0
I currently have a checkbox that calls a Javascript-function:

<input type="checkbox" name="name1" id="name1" class="form-check-input" value="1" onchange="submitFunction(1);">

I'd like to change this into a button that calls the same JS-function when pressed. This feels trickier than it should be...I've had a look at the alternatives under this link, but haven't cracked it yet.

https://manual.joomla.org/docs/general- ... rd-fields/

Any help/pointers would be much appreciated.

Statistics: Posted by Natrixx — Sat Dec 28, 2024 10:54 am



Viewing all articles
Browse latest Browse all 1889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>