solved the problem, missing </div> closing statement, although I think that 
was included in the real code

On Saturday, January 5, 2013 3:23:00 PM UTC+1, jonas wrote:
>
> Hi
>
> when using the following functions in index.html only the last one works:
>
> {{extend 'layout.html'}}
>
> <h2>index.html</h2>
>
>
> <div class="one" id="a">Hello 2</d
> <div class="two" id="b">World 2</d
>
> <script>
> jQuery('.one').click(function(){
>   jQuery('.two').slideToggle()
> });
> </script>
>
>
> <div class="one" id="a" onclick="jQuery('.two').slideToggle()">Hello 
> 3</div>
> <div class="two hidden" id="b">World 3</div>
>
> but when using the first function in layout.html it suddenly works. why is 
> not 
>
> <div class="one" id="a">Hello 2</d
> <div class="two" id="b">World 2</d
>
> <script>
> jQuery('.one').click(function(){
>   jQuery('.two').slideToggle()
> });
> </script>
>
> working in index.html? I thougth jQuery lib was inherited from 
> layout.html? 
>

-- 



Reply via email to