Why does my jQuery click function not do anything?

Because the only child of table is tbody and it has neither class edit nor add or editRow You might want to use find instead.

Because the only child of table is tbody and it has neither class edit nor add or editRow. You might want to use find instead: $(this). Closest('table').

Find('. Edit').hide(); $(this). Closest('table').

Find('. Add').hide(); $(this). Closest('table').

Find('. EditRow').fadeIn(); But as I don't know what you actually want to achieve I cannot say if this is doing what you want ;).

Of Course! Thanks. I was about to go crazy.

– Ben Feb 3 at 18:56 $(this). Closest('table a. Edit').hide(); – WTP Feb 3 at 18:58 @Radek S: This would only work if a.

Edit is an ancestor of the clicked element`. And I think it is not. And then $(this).

Closest('a. Edit') would be even better. You cannot combine closest and find.

– Felix Kling Feb 3 at 19:03 I have multiple a. Edits and so only the first answer works with my code. – Ben Feb 3 at 19:20.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions