I have a question about two jquery functions that I've been struggling with.
$(document).ready(init);
function init() {
$(".alphaleft").hover(function (g) {
$(".boxy,.yee").show();
},
function (g) {
$(".boxy,.yee").hide();
});
}
$(document).ready(init);
function init() {
$(".alpharight").hover(function (h) {
$(".tea,.coffee").show();
},
function (h) {
$(".tea,.coffee").hide();
});
}
The issue is that only one function shows up at a time. If I comment out one, then the other works fine and vice versa. I can't figure out what's causing this inconsistency. Any suggestions or advice would be greatly appreciated, as I've been trying to solve this for an hour now and it's driving me crazy!
edit: http://jsfiddle.net/W3TTh here is my jsFiddle link for reference!