[jQuery] Re: Help me improve my script

2007-09-24 Thread muccy
#2 =))) #3 I think the difference consists in: - children() finds direct descendants - find() finds ALL the descendants (the children, the children of children, and so on) #1 maybe you can do it...but I never tried (BUT THERE ARE SOME USEFUL PLUGINS) var e = $("document").append("").ch

[jQuery] Re: Help me improve my script

2007-09-23 Thread RichUncleSkeleton
Cheers for #2, can't believe I didn't think that... I've just looked up children() in the jQuery API, but I don't see how it is different to find(). Unfortunately the jQuery demos are useless since they don't actually do anything... As for #1, I thought one was supposed to add objects to the DOM

[jQuery] Re: Help me improve my script

2007-09-22 Thread muccy
1) I think it's a good way. $("#some").after("yourhtml"); to insert some tags after... 2) you could save "form#question-setup fieldset:last" for example...so var f = $("form#question-setup fieldset:last"); f.after("...").slideDown("fast").filter("input[type=text]").focus(); f.filter("div.questio