i accidently left my headlights on my 2001 dodge 1500 for about 2 hours, went to start it and it was dead, i jump started it, and now it will not stay idleing, it will start just fine, but dies when i let off the gas. Note, it ran just fine with no issues on my way to work
Sounds like your battery does not carry enough charge/voltage to keep it running. You will need to put in on a charger to fully charge it back up, or take it over to your local auto parts store and they will charge it for free, and do a complete test on it. If the battery is over 4-5 years old, I'd replace it.
I have to agree with Tom. If your battery went completely dead in 2 hours, it was possibly getting weak anyway. you could try charging it completely, but like he said, if it's 4-5 years old or more, just spring for a new one. If you charge it right up and it works good, it might not hurt to have the charging system checked out to make sure your alternator is sending a good charge to your battery. Theoretically, one your engine is running, it should be able to run strictly off of the alternator power, so it doesn't hurt to check that it's putting out the proper voltage and a good supply of current.
Also consider with loss of battery power sometimes the computer must reset or re adapt and your drivability issues will disappear after a 20 minute trip.
Looking for a Used Ram 1500 in your area?
CarGurus has 11,401 nationwide Ram 1500 listings starting at $700.
Search Dodge Ram 1500 Questions
Dodge Ram 1500 Experts