Jump to content
php.lv forumi
  • 0

visi elementi iekšs noteikta elementa


Question

Posted

	$('.page-effective-website-development .pane-content table tr td').hover(function() {
 	$('#calc_baloon').show();
 	mouseover = true;

});

 

pašlaik ir šādi, bet reāli tiekot uz td iekšējā div,img vai cita elementa vairs neuzskata, ka tas ir hover.

Kā panākt, lai turpinātu uzskatīt nerakstot tagad katru elementu aiz komata.

6 answers to this question

Recommended Posts

  • 0
Posted

Tātad

$('.page-effective-website-development .pane-content table tr td').mouseout(function() {
 	$('#calc_baloon').hide();
 	mouseover = false;
});


$('.page-effective-website-development .pane-content table tr').hover(function(){
 	$('#calc_baloon').show();
 	mouseover = true;
});

 

un html izskatās tā, aj vnk te: http://jsfiddle.net/RBTt9/2/

 

Kāpēc tik gļukaini strādā?

  • 0
Posted (edited)

Neesmu jquery speciālists, bet vai nevajadzētu būt eventiem mouseout un mouseover, nevis hover? Vēl arī Tev sākumā ir "table tr td", bet pēc tam ir tikai "table tr".

Edited by Maris-S

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...