Essentialy you have to develop your lower section: quads, harmstrings, calves, but also your core muscle (abs) Playing bball+rope skipping+weight training (squat, lunges,calf raise...) is the best combination
You can't do much to increase your height, but you can do a lot to increase your vertical. I went from not being able to touch the net to being able to dunk when I was in college. It's all about form and developing the right muscles for jumping. Squats are great, but also did a lot of what I called "endurance jumping" -- basically just jumping as high as I could, landing, and immediately jumping again. It's tiring, but it produced results. I think the live jumping (as opposed to just doing squats) helped me get my upper body involved in helping the jump instead of just being dead weight.
All of the replies so far are true. As a former football, basketball, and track athlete I can tell you that constant running and jumping seems to strengthen all of the muscles needed for jumping. Other than that and regular weight training exercises targeting your legs, I would also recommend researching the Strength Shoe(You can Google it). I personally have not used them, but I've seen firsthand the results. The shoe's manufacturer claims it will improve your speed, quickness, and jumping ability. They say you can expect improvements of -0.2 sec off your 40-yard dash time and +4inches to your vertical leap. Some of my football and basketball teammates used them and I will say they did see small improvements in speed. However, as far as jumping goes there were gains of at least 3"-4". That's all I know of.
My german shepherd labrador cross is 5 months old and is driving me mad jumping on people and leaving muddy pawprints on them. Especially my next door neighbour who gets a lift to school with me each day and...