Sounds like your Dakota had a 'Hiccup'.
If the check engine light is flashing - you should not drive it anymore and have it towed into your Automotive Service Center.
If the check engine light is solid and your Dodge is having weird symptoms like hesitating, stalling, running rough, then I recommend you get it into the shop right away.
If the check engine light is on solid but your vehicle is driving fine, then you should make an appointment sooner then later.
The technician will hook up a diagnostic computer to your Dakota's computer to see what 'codes' were set when your vehicle hiccuped. This will either give the technician valuable information to determine what happened or give them enough information that they know what tests to perform to see what is going on..
〉 Answered on Sep 17th, 2013 by Amy Mattinat, Owner and Author at Auto Craftsmen Ltd
Sounds like you have a loose ground wire or battery cable. There may be additional electrical issues going on, but i would start with checking the battery cables and ground wires. Also get the charging system checked.
〉 Answered on Sep 17th, 2013 by Helaine Kurot, Owner/Technician at 360 Automotive