Why does this :

$(document).ready(function(){

    if($(".leftNav ul li:last").height() < 32){
        $(".leftNav ul li.last").addClass("lastWithItems");

    }

})


work in 1.3.1 but not this

$(document).ready(function(){

    if($(".leftNav ul li.last").height() < 32){
        $(".leftNav ul li.last").addClass("lastWithItems");

    }

})

(Notice the li.last on both lines) ??? Also why isnt it explained anywhere
:(

Another thing

why cant i do this

function blabla() {
}

$(document).ready(blabla()) ?

and i have to do $(document).ready(function(){})

>From what i recall i could do both things in 1.2.6, now with 1.3.1 those
seem to be impossible, also why isnt there any mention on the Jquery
doc/tutorial pages? :(

Thanks
-------------------
Alexandru Dinulescu
Web Developer
(X)HTML/CSS Specialist
Expert Guarantee Certified Developer
XHTML: http://www.expertrating.com/transcript.asp?transcriptid=1879053
CSS : http://www.expertrating.com/transcript.asp?transcriptid=1870619
RentACoder Profile:
http://www.rentacoder.com/RentACoder/DotNet/SoftwareCoders/ShowBioInfo.aspx?lngAuthorId=6995323

MainWebsite: http://alexd.adore.ro
Portofolio: http://alexd.adore.ro/project_page.php

Reply via email to