I’m using this:
$(this).closest('tr').next()
To select a table row, but I also need to select a tr with specified id after this tr.
I’ve tried like to do it this way:
var a = $(this).closest('tr').next()
var b = $(a).closest('#itemrow').next()
var a is working fine, but it does not select an var b.
What it the problem?
1 Answer