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

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

$
0
0
Thx for the reply...sorry for not being more detailed.

I think I've done what you've suggested, I have constructed a form (through a php-script) with the checkbox I mentioned above. Everything works, the checkbox calls the JS-function when it's state is altered, and so on.

The php-line that defines the checkbox looks like this:

$xml_cb_entered = new \SimpleXMLElement('<field name="name1' type="checkbox" label="" onchange="submitFunction('1');"/>');

But, I want to have a button instead. And I can't for my life figure out what the corresponding code (in the final webpage or in the php-code) should look like.

Statistics: Posted by Natrixx — Sat Dec 28, 2024 11:56 am



Viewing all articles
Browse latest Browse all 1162

Trending Articles



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