jQuery toggle show XHTML Smarty some clahes maybe? It doesn't show..
- by Kyle Sevenoaks
Hi, at this page new customer, there is something that it doesn't like, my boss asked me to make a show function that shows the new customer registration when the user clicks on the "ny kunde" button.
Here is an example of the code I got working (I'm a jQuery noob).
I guess there is some clash between this and the functions already installed on the page, but what?
#roundbigboxnykunde is meant to be hidden on the page as on the jsfiddle example, but I have shown it to let you see what else is on the page.
Code on my .tpl
<button id="button1"> </button>
{literal}
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(function() {
//checkbox
$("#button1").click(function()1
$(".newCustomer").toggle("show");
});
});?
</script>
{/literal}
<div class="newCustomer">...
Thanks.