Jquery Prev is not working

Hi All,

I have my source code as-


.... ....

Minusicon

ABCDEFGHI

.... ....

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:-
function showHide(elem)
{
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
same.
}

Can you guys light me that what i am doing wrong here.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs