Im currently trying to build a small online pokemon randomiser, there is an open-source pokemon API that i have found which should work, but im struggling to find a way for the user to submit their favourite pokemon, then me take that data to add to the end of the API URL. Any help would be greatly appreciated, feel free to DM too.
#Help Linking an API
2 messages · Page 1 of 1 (latest)
<h1>What is your favourite Pokemon?</h1>
<form>
<label for="fname">Pokemon Name:</label><br>
<input type="text" id="pokeName" name="pokeName"><br>
<input type="submit" value="Submit">
</form>
that is the form i made, but i somehow need to get the answer to that form over to my JS so i can add it to the end of the API URL.