hide works fine, the .next('#hide") doesn't
of course your hide() issue might come from you having multiple element with the id="hide". Ids should be unique, so 1 of a type on a page. You should consider using class="hide" instead.
Also .next() : Get the immediately following sibling of each element in the set of matched elements, optionally filtered by a selector.
So in your case the <a> tag. You might want to consider using siblings() instead.
Balázs Suhajda
frontend developer