Hiding div onload jquerymobile
Hi,
I have a list that I want to hide when the page loads. My problem is that I need to refresh the page to have my ul hidden, because it's not on the first loading. How can I get rid of that ?
If needed, here's my code.
<script src="/jquerymobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">$('#mypage').live('pageinit', function () { $('ul.my-list').hide();
$(".menu-icon").click(function () {$("ul.my-list").toggle();});});</script>
<script src="/jquerymobile/js/jquery.mobile-1.1.1.min.js"></script>
Thanks for your help,
kinkaz