This video shows neurite (axons in this case) growth. You can see the axons growing out towards other neurons, some connections not leading places and shrinking back, while others search out connections. How do they do know where to go? There are certain chemicals that other neurons will secrete, and then the neuron can pick up on concentration of those chemicals and grow in the directions where the concentrations are highest (which would be at the neuron secreting them).