Disconnect the AC adapter.Disconnect the battery.Press and hold the power button for 30 seconds to discharge any residual electricity.Reconnect a genuine Dell AC adapter of at least the wattage of your originalReboot the laptop. If you still have a power issue, there is likely a fault with at least one of three items: It's a process of elimination to figure out where the problem lies, or at least where it doesn't lie. For example, if your charger is recognized and works on another Dell laptop, then the problem is likely your charging jack or charging circuit. Hold F2 while booting, to enter BIOS. See if the charger is recognized. Try another genuine Dell charger of at least the same wattage/amperage. If that second Dell charger works, then the fault is likely with your charger. If it doesn't work, then the fault is likely with the jack or the circuit. The jack is a relatively inexpensive item that is not difficult to replace for someone experienced in working on laptops. If a good charger and a new jack won't work, then the fault is likely with the charging circuit on the motherboard, which would normally require replacement of the motherboard. Run Dell Diagnostics:Press and hold F12 while booting to enter the One Time Boot Menu, select Diagnostics and press Enter. The Dell Diagnostics will test major hardware components. Re. your replacement battery: As that laptop model is ten years old, there will not be any new Dell batteries. What you will get is either a Dell battery that was "refurbished" by someone else (not Dell or approved supplier) by replacing the internal cells, or an outright counterfeit. Such batteries might work, or might not, or might fail before long. They could also damage your laptop. If you buy such a battery, make sure to choose a vendor that has a good return/refund policy.
I shorted my Latitude e6430 using a universal charger(beginner mistake ;), it runs on AC power, but does not charge(except slowly when OFF)  I done had a similar issue before, I am ordering a new battery next month but I'm wondering if it is an MB issue first.
Help! I Shorted the PC