I'm new to jQuery. I'm trying to use this code:
var ThisTableWrapper = $('#switch1').parent().next();
var ThisTable = $(ThisTableWrapper > '.table-data');
But it doesn't seems to work.
What is the correct way to write that in one line?
I've tried something like this - but with no success
$( $('#switch1').parent().next();) > .table-data);
Any help will be much appreciated.
HTML HERE: html code