I am using jquery, and javascript. I am trying to make a tip calculator using jquery, showing one page at a time. I am up to the page where it asks the user how many people users need to input the number in their party.
$(document).ready(function(){
  $(".begin").click(function(){
    $(".container").html("
      <h1 class = 'jumbotron'>How Many People Ate?</h1>
        <select class='form-control' id= 'foo'>
          <option>1</option>
          <option>2</option>
          <option>3</option>
          <option>4</option>
          <option>5</option>
       </select>");
    $(".container").append("
      <button class = 'btn btn-info next center-block'>
        Next
      </button>")
  });
  $(".next").click(function(){
    console.log($( "select#foo" ).val());});
  })
 
     
     
    