Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

3
How to grab input values to compare with later
Post Flair (click to view more posts with a particular flair)
Post Body

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.

Author
Account Strength
100%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
9,114
Link Karma
553
Comment Karma
8,165
Profile updated: 2 days ago
Posts updated: 1 month ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago