The best way to get laundry detergent out of the carpet in your car is to start by taking a damp cloth and wiping the area where you spilt the detergent.  Next, take a clean towel and soak up as much of the liquid as possible.  Use a vacuum cleaner to remove any remaining residue from the area, then wipe with a damp cloth again to remove any remaining moisture.