Home › Forums › JavaScript › JQuery's .hover() s troubling me.
- This topic is empty.
-
AuthorPosts
-
April 25, 2014 at 9:32 am #168692
Rohithzr
Participantok i have a code that should work fine, it’s purpose is to show the tools on a table row when it is hovered.
This image shows the result of the function when hovering table tbody tr
http://imgur.com/OU8epnJjQuery(document).ready(function() { jQuery('.table-hidaction tbody tr').hover(function() { jQuery(this).find('.table-action-hide a').animate({opacity: 1}); }, function() { jQuery(this).find('.table-action-hide a').animate({opacity: 0}); }); });
but nothing is happening and now
This image shows the result of the function when hovering table
http://imgur.com/lqXEho6jQuery(document).ready(function() { jQuery('.table-hidaction').hover(function() { jQuery(this).find('.table-action-hide a').animate({opacity: 1}); }, function() { jQuery(this).find('.table-action-hide a').animate({opacity: 0}); }); });
is working
what i am not understanding is that if.table-action-hide a
can work properly then why cant.table-hidaction tbody tr
and i know that my code is working and css is correct because it works when.table-hidaction
is used.also a gist of my table’s interpretation by chrome
Please give me some suggestion and show the light in this darkness. :)
April 25, 2014 at 9:34 am #168693Paulie_D
MemberA Codepen demo or two would be useful
April 25, 2014 at 9:40 am #168695Rohithzr
Participantok i’ll try but it is highly unlikely as i am using all sorts of js and css of a theme so for it to work the same on codepen will be difficult.
April 25, 2014 at 9:42 am #168696Rohithzr
Participanti can give team viewer access if you are willing o take some time out to help me.
April 25, 2014 at 12:57 pm #168708Alen
ParticipantJust to clear up some confusion:
When you hover over the whole table, tools should appear?
When you hover over individual table row, it should do what? Change background color? In the code you provided, you’re just fading the tools on both actions.You could transition the background with CSS.
http://codepen.io/alenabdula/pen/IviDjApril 25, 2014 at 3:53 pm #168712 -
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.