Your battery is nearly dead, that's why your engine won't idle. The alternator requires power from the battery so it can power the alternator which powers the ignition system. First try recharging your battery overnight and if that doesn't fix it, have your battery's health tested with a load test which most battery stores can do for you.
A forum community dedicated to Jeep Wrangler owners and enthusiasts. Come join the discussion about reviews, performance, trail riding, gear, suspension, tires, classifieds, troubleshooting, maintenance, for all JL, JT, JK, TJ, YJ, and CJ models!