Hi, at this page new customer, there is some clash between the two scripts. I have been asked to make the content shown when clicking the "ny kunde" button.
This script works fine now, thanks to Voyta.
There is another script made by another person that finds Company CEO information and inputs the data into the fields.
When I put the show script into the page, this function sottped working, as did the show hide on the checkbox lower down in the page.
How can I find out what's clashing? What am I looking for? Should I just give up?
Here is an example of the code I got working (I'm a jQuery noob).
Code on my .tpl
<button id="button1"> </button>
{literal}
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(function() {
$("#button1").click(function() {
$(".newCustomer").toggle("slow");
});
});
</script>
<div class="newCustomer">...
Thanks.