trying to get user input value to use in a variable JavaScript : im pretty new to this and im pretty new to using JS. im working through the basics and really getting in to it. however i am having an issue with trying to use a users input to help me in other areas.. 

i have a little CSS to create an input id="cars" and a button id="submit" i want to use those inputs in a switch statement.. this is what i have so far, i will add more to my switch statement once i have managed to get the input value to work...


       <h1>What is your car?</h1>
         <input id="cars" type="text"></input>
           <button id="submit">Submit</button>


              <script type="text/javascript">



var clickedCar = document.getElementById("cars").value

	 



	switch(clickedCar){


		case "Honda":
		document.write("Honda are nice cars to drive");
		break;

	}