Here is my script: http://jsfiddle.net/9cnGC/11/
<div id="callus">
<div class="def">111-1111</div>
<div class="num1">222-2222</div>
<div class="num2">333-3333</div>
<div class="num3">444-4444</div>
<div class="num4">555-5555</div>
<div class="numnames numname1">location 1</div>
<div class="numnames numname2">location 2</div>
<div class="numnames numname3">location 3</div>
<div class="numnames numname4">location 4</div>
</div>
$(function() {
$(document).ready(function() {
$('.numnames').hover(function() {
$(".def").toggle();
});
$('.num1').hide();
$('.numname1').hover(function() {
$('.num1').toggle();
return false;
});
$('.num2').hide();
$('.numname2').hover(function() {
$('.num2').toggle();
return false;
});
$('.num3').hide();
$('.numname3').hover(function() {
$('.num3').toggle();
return false;
});
$('.num4').hide();
$('.numname4').hover(function() {
$('.num4').toggle();
return false;
});
});
});
I was wondering if anyone can help me with this fiddle and maybe clean it up a bit so it can run more efficiently?
I believe it is because there is another instance of jQuery running on the page. Which is messing with this script here, but I am not sure what is wrong with it.
Here is the page that has the messed up display logic. http://ben.chmark.com/mdcp/index.php/prescriptions/transfer-prescription
There is a top right module (give us a call). There should only be one phone number shown at any given time. It is modelled after the jsfiddle I provided up above. It runs fine on all the other pages except this one. I'm stumped :(
Thanks in advance