Sweet, this is perfect (and much faster than a rather fruitless Google search). Thanks! – ironkeith Oct 29 '08 at 20:45 lazyweb is great isn't it?
:) Oh and keep in mind that it will do that to every 'p' tag in your if you add more. – swilliams Oct 29 '08 at 20:50 2 then you should probably be using my answer below :) but I'm not bitter... – Ben Scheirman Oct 29 '08 at 21:03.
$(this). Next("p"). Css("...") the "p" above is optional, if you just want the next non-whitespace node in the DOM.
I want to use jQuery to display or hide the 'p' tag when the anchor is clicked Since you mentioned that you'd like to toggle the 'p' tag when the anchor is clicked, I'd do: $("a. Question"). Click(function (event) { $(this).
Siblings('p').show(); //toggle the p tags that are siblings to the clicked element event.preventDefault(); //stop the browser from following the link }).
Ah, I had been wondering what the jQuery version of consuming a click event was. Thanks! – swilliams Oct 29 '08 at 20:46 that saved me having to think further!
I ended up going with slideToggle() instead of show() though, mostly because I want people to think I'm cool. ;) – ironkeith Oct 29 '08 at 21:26 Glad I could help! =-) – Gabe Hollombe Oct 29 '08 at 21:31.
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.