Skip to main content
Rollback to Revision 2
Source Link
Mat
  • 205.6k
  • 41
  • 398
  • 412

http://uologic.com

$('.xx').mouseenter(function(){
  if($(this).is(':hover'))
    alert('d');
  else
     alert('f');
});

Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here

http://uologic.com

$('.xx').mouseenter(function(){
  if($(this).is(':hover'))
    alert('d');
  else
     alert('f');
});

Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here

$('.xx').mouseenter(function(){
  if($(this).is(':hover'))
    alert('d');
  else
     alert('f');
});

Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here

added 22 characters in body
Source Link
Wasim A.
  • 9.9k
  • 22
  • 93
  • 121

http://uologic.com

$('.xx').mouseenter(function(){
  if($(this).is(':hover'))
    alert('d');
  else
     alert('f');
});

Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here

$('.xx').mouseenter(function(){
  if($(this).is(':hover'))
    alert('d');
  else
     alert('f');
});

Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here

http://uologic.com

$('.xx').mouseenter(function(){
  if($(this).is(':hover'))
    alert('d');
  else
     alert('f');
});

Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here

$('.xx').mouseenter(function(){
    if($(this).is(':hover'))
    alert('d');
  else
    else alert('f');
});

Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here

$('.xx').mouseenter(function(){
    if($(this).is(':hover'))alert('d');
    else alert('f');
});

Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here

$('.xx').mouseenter(function(){
  if($(this).is(':hover'))
    alert('d');
  else
     alert('f');
});

Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here

Source Link
Wasim A.
  • 9.9k
  • 22
  • 93
  • 121
Loading