Make sure you pick this option and not one of the others. It will securely wipe the iPad, leaving it empty and ready for a new user to set up.
NB: Ensure that you have performed a backup beforehand, via iTunes and/or iCloud, so you can then restore the backup to your new iPad once you buy it.”