How to use Document.Ready function in Content pages
This question may be simple, but I don't know how to do it. (I'm getting hava script error) I have 04 master pages and around 100s of ASPX pages. So when I want to work in some conent page where should I use my $(document).ready(function(). I already have used this in Master pages.
as an example if I want to use
<script type="text/javascript">
$(document).ready(function(){
$("#accordion").accordion();
});
</script>
in one of my content page,
where should I use the above function and
according.js file.
<script type="text/javascript" src='<%# ResolveClientUrl("~/JQuery/ui/ui.accordion.js")%>'></script>
I'm already using
"~/JQuery/ui/ui.core.js", ~/JQuery/ui/ui.draggable.js", ~/JQuery/ui/ui.resizable.js" in my master files.
Appreciate help...