title: Jquery Prompt Button
body: <p>I need a little bit of help. I'm new at jquery and I'm trying to make a button that the user clicks and then prompt appears. But No matter what I do I can't seem to get the prompt to occur after you hit the button.</p>
  
  <p>HTML: </p>
  
  <pre><code>&lt;input class=".button" type="submit" value="Car" /&gt;
  </code></pre>
  
  <p>jquery:</p>
  
  <pre><code>$(document).ready(function() {
          $(".button").click(function() {
              var myNumber = 19.2;
              var myAnswer = prompt("How many miles did you travel?");
              document.write("Your Carbon Foot print is:" + myAnswer * myNumber + "lbs" );
  
            });
        });
  </code></pre>