[jQuery] Re: is child of...

2007-04-06 Thread bmckenzie
$("#someParent").children().index(someElement) != -1 ; ? On Apr 6, 5:50 am, "Lwis" <[EMAIL PROTECTED]> wrote: > Hi, > > short version: how do I find out whether my element is a child of > another element? > > long version: I think I want to loop through all elements and check > each of them i

[jQuery] Tabs created on the fly

2007-04-03 Thread bmckenzie
I used to be able to create new tabs with the tabs plugin, but I've messed something up (or maybe there's something different in the new version). Anyway, here's the setup: function createTab (myId, myText) { myId = myId || '4' ; myText = myText || "Four"; var myDivId = 'div-' + myId;