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

  • Home
  • SEARCH
  • 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 115623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:02:57+00:00 2026-05-11T03:02:57+00:00

Based on this question I don’t want to litter my ready stuff waiting for

  • 0

Based on this question

I don’t want to litter my ready stuff waiting for a ‘click event’ AND a ‘change event’ AND a ‘mouseover event’ I want to have all that stuff in a single function or event.

Is is possible to chain the events together. I want to capture not only a keyup, but also a click or a change in case the user isn’t on the keyboard.

<script language='javascript' type='text/javascript'> $(document).ready( function () {     setMaxLength();     $('textarea.checkMax').keyup(function(){ checkMaxLength(this.id); } );     $('textarea.checkMax').mouseover(function(){ checkMaxLength(this.id); } ); }); </script> 

This works

$(document).ready( function () {     setMaxLength();      $('textarea.checkMax').bind('click mouseover keyup change', function(){checkMaxLength(this.id); } ) }); 
  • 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. 2026-05-11T03:02:57+00:00Added an answer on May 11, 2026 at 3:02 am

    I think you are looking for bind. Bind can wire multiple events to the same function using a single call instead of using a chain:

    $('textarea.checkMax').bind('keyup mouseover', checkMaxLength); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is based on the thread . I have the shell function function
Based on this SO question asked a few hours ago, I have decided to
there. I don't even know if this question makes sense, however: how do BOINC-based
So I know this question have been asked a lot , but I don't
Update 25/03/2011 I've marked this question as answered, while I don't yet have the
Based on this question I understand the purpose of the construct in linking C
Based on this question How to insert array into mysql using PDO and bindParam?
This question is based on this thread . Is [---] a comment in Git
This question is based on this thread . I am interested in how Git
This question is based on this thread . The code function man() { man

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.