jQuery toggle show XHTML Smarty some clahes maybe? It doesn't show..

Posted by Kyle Sevenoaks on Stack Overflow See other posts from Stack Overflow or by Kyle Sevenoaks
Published on 2010-04-30T09:24:30Z Indexed on 2010/04/30 9:27 UTC
Read the original article Hit count: 192

Filed under:
|
|
|

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">&nbsp;</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.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about XHTML