Animate div and child paragraph

Animate div and child paragraph

Hi, 

I'm new to the forum and to jQuery. I couldn't find the solution to this problem on my own, I think the solution has something to do with selectors.

I animated successfully a div's border on the hover event, but would also like the child paragraph to perform an animation but with the following code I cannot isolate only the paragraph belonging to the div that's being hovered, and all paragraphs child to a div also animate.
I cannot use the this keyword here, so I'm stuck.

  1. var jq=jQuery.noConflict();

  2. jq(document).ready(function()
  3. {
  4. jq("#container div").hover(function()
  5. {
  6. jq(this).stop(true,true).animate({
  7. width:'-=20',
  8. height: '-=20',
  9. borderLeftWidth: '+=10',
  10. borderTopWidth: '+=10',
  11. borderRightWidth: '+=10',
  12. borderBottomWidth: '+=10'}, 300);
  13. },
  14. function(){jq(this).stop(true,true).animate({
  15. width: '+=20',
  16. height: '+=20',
  17. borderLeftWidth: '-=10',
  18. borderTopWidth: '-=10',
  19. borderRightWidth: '-=10',
  20. borderBottomWidth: '-=10'}, 600);});
  21. jq("#container div").hover(function()
  22. {
  23. jq(this).find('#container p').stop(true,true).animate({
  24. marginTop:'-=5'}, 300);
  25. },
  26. function(){jq(this).find('#container p').stop(true,true).animate({
  27. marginTop:'+=5'}, 600)});
  28. });