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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:50:04+00:00 2026-05-28T17:50:04+00:00

What is wrong with .mousemove because wont to do noting on IE8. Must expand

  • 0

What is wrong with .mousemove because wont to do noting on IE8. Must expand the disabled inputs with value > 20 characters. Only on IE8 is not working.
And another thing, why isn’t dragging back after cursor is on other element.

$('input[disabled]').mousemove(function(){
      if ($(this).val().length > 20) {
       $(this).attr('data-default', $(this).width());
       $(this).animate({width: 300}, 'slow');
      }
});

Check the fiddle:
http://jsfiddle.net/DCjYA/183/

thank you.

  • 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-05-28T17:50:06+00:00Added an answer on May 28, 2026 at 5:50 pm

    In this case you should be using the readonly attribute instead as this will allow further interaction with the input box.

    your css

        input{
            margin:10px;
        }
        input.readonly {
            color: grey;
            cursor:default
        }
    

    and your form

    <form action="form_action.asp" method="get">
          First name: <input type="text" name="fname" value="Foghorn Leghorn Foghorn Leghorn" readonly="true" class="readonly" /><br />
          Last name: <input type="text" name="lname" value="" readonly="true" class="readonly" /><br />
          Last name: <input type="text" name="lname" value="Foghorn Leghorn" readonly="true" class="readonly" /><br />
      <input type="submit" value="Submit form" style=""/>
    </form>
    

    and your jQuery

        $('input[readonly]').mousemove(function(){
           if ($(this).val().length > 20) {
                    $(this).attr('data-default', $(this).width());
                    $(this).animate({width: 300}, 'slow');
                    $(this).parent().addClass('cooling');
                  }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whats wrong with my query? ALTER TABLE test_posts ADD sticky boolean NOT NULL default
I'm trying to emulate a mousemove event in a link in IE8, but I'm
Whats wrong with the following c# code? Compiler reports this error: Inconsistent accessibility: parameter
Whats wrong with my buttons? here http://hiddenbrookstudio.com/index.swf , see how they rollover and dissappear
Whats wrong in below JSON Object definition I am trying to create a new
Whats wrong with this code? -(void) drawRect:(CGRect) rect { CGContextRef c = UIGraphicsGetCurrentContext(); if
Whats wrong with this picture? Model: validates_acceptance_of :terms_of_service, :on => :create, :accept => true,
whats wrong with this? anybody help me please.. if(stripos($nerde, $hf) !== false) && (stripos($nerde,
Why is it wrong to use std::auto_ptr<> with standard containers?
If something goes wrong in a WCF REST call, such as the requested resource

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.