Search Pokémon by Pokédex entry with ajax no JQuery needed. Just put a number between 1 and 1017 and you'll get the Pokémon.
For this we're using Pokéapi for fetching the Pokémons
In the if/else condition, you can customize your error alert.
else {
alert('There was an error with the request')
}
Or using sweetalert.
else {
Swal.fire("Your message here","","type of alert");
}
Bootstrap v5.2.3
Sweetalert2
- Fork it!
- Create your feature branch:
git checkout -b your-branch
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin your-branch
- Submit a PR
- Support Pokéapi❤️
Created with ❤️ by Adhir2099