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