Because Jquery UI tab doesn't support passing id selector to remove() tab method, and no method exists to map id to index, I have to painfully "jump hoops" to determine the index of the tab I wish to remove.
I just searched the documentation for JQuery and wasn't able to find a utility method to return an integer of the ordinal position of some child under a parent. I think I want the functional opposite of the
.eq()
traversing method (determine index, not select by index).
Does something like this exist?:
$("#parent").ordinalChild('#some-child')
This would return 0 if "some-child" is the first child, 1 for the second child, etc.
Or how do I go about obtaining this without writing a loop and counting?