Car battery goes flat?

My car battery goes flat when parked for few hours,but when used jump leads and started it starts quickly,without any problem,if it was a battery fault then it would take time to charge and start when jump lead used, and the battery would have charged after car jogging for a while ,but even after driving for a while and when parked for couple hours,,it goes low. plz find me a solution
Answer
Ummmm.... make sure you turn off every thing in your car like stereo, lights, and a/c or heater when you get off the car then if dont solve it check the altenator which charges the battery if there is no problem then its gonna be the battery if you had for not long ago bring it back to where you bought it and then tell them to recharge it or exchange it for free