jeudi 5 novembre 2015

Making a list with js

Vote count: 0

I am making an app that allows users to list movies. I have my Javascript working, but it's only letting me add just one thing. How can I make it so I can add multiple inputs to be posted?

In my html:

<!DOCTYPE html>
<link rel="stylesheet" text="text/css" href="movies.css">
<script src="">

Hello World 
    <h1>My Favorite Movies</h1>
    <input type="text" id="movie" placeholder="Movie">
    <button id="enter">Enter</button>
    <div id="list">Chosen Films:</div>

<script type="text/javascript" src="movies.js"></script>

and my Javascript:

   function() {
     var movie = $("#movie").val();
     var list = (movie);


asked 2 mins ago

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at

Making a list with js

Aucun commentaire:

Enregistrer un commentaire