Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8535893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:32:21+00:00 2026-06-11T10:32:21+00:00

I started using $(‘#myInput’).bind(‘input’, function() { but this does not work in IE. What

  • 0

I started using $('#myInput').bind('input', function() { but this does not work in IE.

What is the best cross-browser solution to detect any change to a text input field, including if the user copy and pastes into the field?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:32:22+00:00Added an answer on June 11, 2026 at 10:32 am

    Intevals.

    They are ugly. Unnecessary. Hated by virtually everyone. But one of the few and by far the most resilient way of testing for user input on IE.

    Reasons:

    • .on('input', function(){}) isn’t supported in IE<9, and is buggy in IE9-10 – it doesn’t fire when characters are deleted.
    • keyup is far from perfect, you can paste from right-click menu and toolbar.
    • The paste event is well supported since IE6 as far as I remember, but then keyboard input and pasting aren’t the only ways of inputting values. You can select, drag and drop text in an input too. This is one of the reasons why intervals are preferred when implementing IE support.

    In IE you can also have onpropertychange as a fallback, but then it will fire whenever an object property changes, forcing you to do similar “value changed” validation as you would with an Interval. Thus I’d rather write a single interval that works in all browsers than writing a code for all browsers and another for IE.

    So my suggested solutions are:

    1. Use an interval as follows:

      $(function() {
          var input = $('#foo'); //change this selector to your input
          function checkchange() {
              var v = input.val();
              if (input.data('v') === v) return;
              input.data('v', v);
              //do stuff
          }
          input.data('v', input.val());
          setInterval(checkchange, 100);
      });
      

    Fiddle

    Or 2. Put GCF on a modal and hide the X button, therefore forcing IE users to install it and you’ll never have to write IE-specific code again – I do this whenever I can! Then again, my target audience usually doesn’t include IE users.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started using LESS today. But it's kinda weird. This code does not work.
We started using Mercurial a several weeks ago. Most developers follow this workflow: work
I started using Flash CS5 (and it sucks btw, but that's not my issue
I started using entity inheritance today with core data, does anyone have any experience
I started using ModX yesterday. Prepared my multilingual website using this tutorial: http://www.multilingual-modx.com/blog/2011/multilingual-websites-with-modx-and-babel.html .
I started using EF 4.1 code first. I have a entity table like this:
I started using Overbyte components , used to use Indy but blocking issue made
Just started using Blueprint CSS and now playing with the grids but have a
Started using Quartz.net in my project. But got stuck. Using cron trigger fires only
Started using PDO prepared statements not too long ago, and, as i understand, it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.