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 8353799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:22:03+00:00 2026-06-09T09:22:03+00:00

JS: var count = 0; jQuery(function () { $(‘.input’).live(‘input’, function () { //any instructions

  • 0

JS:

var count = 0;

jQuery(function () {
    $('.input').live('input', function () {

    //any instructions here
    count++;
    $('.count').text(count);

    });
});

HTML:

<textarea class="input" /></textarea>

<br /> <span class="count"></span>

I want to do the same in IE.
This works in all browsers but not in IE…

I can’t use live('keyup') because this must works “on paste”.

Also live('paste') doesn’t work in IE.

I want to execute instructions when type a character (with keyboard) or paste a character (right click > paste [with mouse]).

http://jsfiddle.net/4LDJG/4/

  • 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-09T09:22:06+00:00Added an answer on June 9, 2026 at 9:22 am

    i use setinterval function

    $(function (){
    
        function jm(){
           var val=$('textarea').val();
           var jj=val.split("");
           $('.count').text(jj.length);
        }
        setInterval(jm,100);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my Jquery code: $('#unblockButton').click(function () { var blockedlist = []; var count
I am using the following jQuery functionality to count words in real time: $(input[type='text']:not(:disabled)).each(function(){
Revised Code jQuery(function($) { $(#filter).keyup(function () { var filter = $(this).val(), count = 0;
so basically here is my script: http://jsfiddle.net/JJFap/42/ Code - jQuery(document).ready(function() { var rel =
I wrote the following: Object.prototype.length = function(){ var count = -1; for(var i in
$.post(/diabetes/ropimages/getcount.php,{pid:$(#patient_id).val()} ,function(data1){ //alert(data1); var count = data1; var pid = $(#patient_id).val(); var rid; for(
I have a jquery function that should count characters the user is typing in
I have a problem with the following HTML/jQuery script. <script type=text/javascript src=jquery-1.7.1.min.js></script> <script type=text/javascript>
Can anyone explain why this jQuery .html() function is not outputting anything? I'm new
Following is a piece of jquery code that is driving me nuts var count

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.