This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I am currently working on an assignment where we have to take a user's input and compare their value for either movie title or cast member name and the page will render movies that matches with either input.
This code I wrote and checked with the console logs. It is taking them as it should and changes whenever the input values change.
const userForm = document.getElementById("Search");
userForm.addEventListener("click", (e) => {
e.preventDefault();
let inputTitle = document.getElementById("titleInput").value;
console.log(inputTitle)
let inputActor = document.getElementById("actorInput").value;
console.log(inputActor)
});
I wanted to know how would I be grabbing the values and turning them into a string so I can compare the inputs to the movie list. I console logged them and it works but I am also very doubtful of myself as well lol.
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnprogra...