2 March 2012 at 11:43pm
I have a table and when I click on a row, the childrows are opened in accordeon style with JQuery.
All works fine. But the only thing is, I want the accordeon to open a the level of the row I clicked.
Therefore, the function closest() is used. But this won't work.
My childtable always opens at the button of the mastertable...
I use the JQuery 1.6.4, so that can not be the problem.
100% SS question.
I'm playing around with the JTable in SS. Really cool thing to work with.
All works fine, but there's just one thing I can't get right :
open the child table at the height of the parent table.
5 March 2012 at 1:19am
Well, you didn't say that, did you? : -) You just said you had a table (somewhere), you click a row (= tr in my book) and closest() doesn't get you that same row (tr) - which it wouldn't, when you're clicking the row itself...
I suppose you're referring to something like this (from the jTable demo's):