Since you know the charger itself works, reboot your iPad and try to charge again.
Hold both the power and home buttons at the same time for at least 10 seconds (keep holding past the swipe to shut down if it appears) until the Apple logo appears then let go and your iPad will restart.