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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:46:21+00:00 2026-05-25T10:46:21+00:00

This is my html: <div><input/></div> and this is my jQuery: $(‘input’).focus(); $(‘input’).blur(function () {

  • 0

This is my html:

<div><input/></div>

and this is my jQuery:

$('input').focus();
$('input').blur(function () { console.log('BLUR!'); });
$('div').effect('shake');

Please see http://jsfiddle.net/kN7tr/

Somehow the shake effect fires the blur event. That is really annoying. Any suggestions?

EDIT: The following situation is similar http://jsfiddle.net/kN7tr/1/

  • 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-25T10:46:22+00:00Added an answer on May 25, 2026 at 10:46 am

    After some digging, it looks like this is the culprit http://bugs.jqueryui.com/ticket/7595

    This was the fix:

    // Fixes #7595 - Elements lose focus when wrapped.
    if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
        $( active ).focus();
    }
    

    (which is on line 4425 of 1.8.16 if you’re interested – the comment is misleading as it’s talking about a decorator (has nothing to do with text wrapping or anything))

    Fiddle has 1.8.14, which the bug was reported against.

    This fix is available as in 1.8.16, which is available on Google CDN (and obviously if you downloaded the latest)

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

Sidebar

Related Questions

Given this jQuery: $('div.MvcFieldWrapper :input').focus(function() { $(this).closest('label.MvcDynamicFieldError').fadeOut(); }); And given this HTML: <div class=MvcFieldWrapper>
HTML: <div> <input> <label> </div> JS: $('div input').live('click',function(){ alert($(this).is(':checked')); }); $('div').live('click,'function(e){ if(!$(e.target).is('input')) $(this).find('input').click(); });
Given this HTML: <div class=OpenIDSelector>some text</div> Why does this JQuery selector match it on
Suppose I have this html markup: <div id=wrapper> <pre class=highlight> $(function(){ // hide all
In my html page, I wrote: $('div > input').click(function(){ alert(1); }); my div is
Possible Duplicate: jQuery bind click ANYTHING but ELEMENT I have this HTML <div id=outer>
I have this HTML: <div> <input type=text class=dropInput> <ul class=inputDrop> <li>Hello</li> <li>Goodbye</li> </ul> <input
I have this HTML: <div id=studyTestContent class=studyTestItem> <input type=text class=dropInput size=15> <ul class=inputDrop style=display:none;>
$(.panel_wager_container input).change(function(event) { var wager = $(this).val(); var multiplier = $('#multiplier').html(); var limit =
Two jQuery questions: 1) Given this HTML structure <div id=tipper class=tiplink><a href='test.html' >Link Text</a>

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.