I am new to jQuery mobile. I perfectly know how to reference all my scripts and CSS file. But right now I am a little bit confused on how to embeded my own code. Take for example when coding normal jQuery we use:
$(document).ready(function (){
// we embedded codes here
});
But for jQuery Mobile I have a code which I use:
$(document).bind('pageinit',function (){
});
So I embed all my code inside.
Should all code be in the bind? I am just a little bit confused on this or when am I suppose to embed a code inside the bind? Is it code that I want to execute when the page loads?
Also what is the difference between the mobileinit and pageinit?

