You can reset an iPhone, even without the password, by putting it into "recovery mode" or erasing it via iCloud's Find My service.
To reset or change your iPad's passcode, you can use the "Passcode" menu in your Settings app, or reset the entire device.