0
      1
      2
      3
      4
      5
      6


Do you need to filter input fields in your form to prevent users from filling them in incorrectly. Use this simple Javascript function to filter user input and remove invalid characters depending on the filter type. I have used this function in a few projects and does not require jQuery. You can easily add additional filter types to the function. The below example can filter integers and floats.

You can use this function by with Javascript events or directly in your HTML.

You can also change the event to filter input other events like onchange or onblur.

Date posted: July 8, 2014 | Author: | No Comments »

Categories: Programming Web

Tags: , ,

Copyright © 2013, Neil Bittner. All Rights Reserved.