Coding Standart

Coding Standart

i am new with jquery...i am coding my blog system... i wrote my all codes into one file.. is this right ?

i have codes like this:

$(document).ready(function(){
..................
    $(".albumphoto a").lightBox();
..................


this code will load all pages of my blog but only one page have .albumphoto class...is my coding standart true ?(yea all codes working but i want to code best) thanks