So if anyone knows jquery... I need some help. this script should basically delete the sub cell if the mouse is not over the main cell or the sub cell...but it wont work!! HELP!
$('#layer2_cell1').hide();
$("#layer2_cell1").mouseenter(function() {
$("#storage").data('airplanessubcell', '1');
});
$("#layer2_cell1").mouseleave(function() {
$("#storage").data('airplanessubcell', '0');
});
$("#layer1_cell1").mouseenter(function() {
$('#layer2_cell1').show();
});
$("#layer1_cell1").mouseleave(function() {
var subcell = $("#storage").data('airplanessubcell');
if (!(subcell == '1')) {
$('#layer2_cell1').hide();
}
});