Closed GoogleCodeExporter closed 9 years ago
Original comment by hielke.hoeve
on 29 Mar 2012 at 7:14
hi! try this instead:
<html
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
<body>
<div wicket:id="accordion"></div>
<div id="myDiv" style="display: none; height: 50px; background-color: #EB8F00">Slide down and animate background color</div>
</body>
<footer>
<script>
$(document).ready(function(){
$("#myDiv").slideDown({ queue: false, duration: 1000 }).animate( {backgroundColor: "#CCCCCC" },'slow');
});
</script>
</footer>
</html>
and add an accordion in Wicket. The problem you are having is because the
jquery resources are added by WiQuery but this is rendered after your script
tag. Your browser does not recognize $ because this is declared in the jquery
script. By putting your code in either the body or the footer you are ensured
that all resources have been loaded.
Original comment by hielke.hoeve
on 29 Mar 2012 at 7:31
Original issue reported on code.google.com by
christop...@gmail.com
on 17 Aug 2011 at 2:23