I have my source code as-
and then again image and a href(link)
I try to find the next and prev element when i click on any link. So i
have done it like this in JS file:-
var table = elem.next(“table”);
// done whatever to be done with table.
var image = elem.prev(“img”);
// This code is not working out. Although the syntax and semantics are
Can you guys light me that what i am doing wrong here.