There's a lot of tutorials about hide/show functions in jQuery but can't find any regarding my issue. I'm not new to programming, jquery is a first for me.
I would like it when a user clicks on "link 1" etc...it hides the word "hide me" below. Currently it partially works, but it only hides the actual link...not the "hide me" word. I know it's to do with a selector...but not sure where to put the selector in.
Thanks.
$(document).ready(function(){
//user clicks on link
$('a').click(function(){
//hides the word below link but doesn't work
$(this).hide();
});
});
I've tried
$(this).hide("panel");
and
$("panel", this).hide();
Thanks