Author Topic: Miniform & JS in template  (Read 247 times)

Offline dbs

  • Betatester
  • **
  • Posts: 7658
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Miniform & JS in template
« on: May 30, 2018, 10:30:18 AM »
Hello, in miniform 0.9 i had added below the miniform template html code a javascript block.
This worked fine.

After upgrade to miniform 0.12 the code output in frontend has been corrupted.
E.g. it changed from
Code: [Select]
<script>
$(document).ready(function(){
my code ...
to
Code: [Select]
<script>
$(document).ready(function())
     })
my code ...

I removed the js block from the template an created a code2 section below the miniform section. So it works again.
But i want have html and js together in the miniform template. Is it possible?
« Last Edit: May 30, 2018, 10:35:20 AM by dbs »