title: How can I use javascript/jquery to prevent a decimal point from being typed into an HTML text field?
body: <p>I have a text field where the user will be entering a number and I want the number to be an integer.  To do this, I want to ignore when a user types a decimal point.  </p>
  
  <p>Currently, I have a javascript function that checks the value of the field on keyup, and if the most recent character typed was a decimal point, it is removed.  This creates an effect where the user types a decimal point, it appears, and then disappears.  Is there a way to make the decimal point not show up at all?</p>