Skip to main content

Bug Tracker

Side navigation

#7379 closed bug (duplicate)

Opened November 02, 2010 02:04PM UTC

Closed November 02, 2010 09:06PM UTC

Last modified March 15, 2012 12:48PM UTC

Hover function on disabled input doesn't work

Reported by: shibo.2kx@gmail.com Owned by:
Priority: high Milestone: 1.5
Component: event Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:
Description

When using the hover event on a disabled input, no event is raised (beside for opera 10.63). Same goes for bind with mouseover.

#!js
$(document).ready(function(){
  $('.hover-this').bind('mouseover', function(){
    $(this).css({border: '1px solid red'});
  });
	
  $('.hover-this').hover(function(){
    $(this).css({border: '1px solid red'});
  }, function(){
    $(this).css({border: '0px'});
  });
});
#!html
<fieldset style="width: 350px; margin: auto; text-align: center;">
<legend>For these inputs</legend>
<input id="input-enabled" class="hover-this" type="text" value="input enabled" />  
<input id="input-disabled" class="hover-this" type="text" value="input disabled" disabled="disabled" />
<i>Both input have 'hover-this' as class</i>
</fieldset>
<br /><br />
Attachments (0)
Change History (5)

Changed November 02, 2010 02:08PM UTC by anonymous comment:1

jsFiddle of the above code: http://jsfiddle.net/LRtQY/

Changed November 02, 2010 05:37PM UTC by jitter comment:2

Practically a dupe of #7359. Check that bug report and my/the comments there

Changed November 02, 2010 09:06PM UTC by rwaldron comment:3

resolution: → duplicate
status: newclosed

Changed November 02, 2010 09:06PM UTC by rwaldron comment:4

Duplicate of #7359.

Changed November 02, 2010 09:07PM UTC by rwaldron comment:5

component: unfiledevent
priority: undecidedhigh

More evidence to support the discussion of adding workaround support for this issue.