Basically I am building hover-able tabs, you can hover a link and then a new div will be displayed and you are able to mouse into that.
My issue is that once the new div has been displayed I cannot bring back the .placehold div once the new one has been displayed.
jsfiddle: https://jsfiddle.net/513t1qk2/
My jquery code below:
$(document).ready(function () {
$(".hoverme1").mouseover(function () {
$("div.showme1").show();
$("div.placehold").hide();
});
$(".hoverme1, div.showme1").mouseleave(function () {
$("div.showme1").hide();
});
$("div.showme1").mouseover(function () {
$(this).stop(true, true).show();
});
$("div.placehold").show();
});
Hopefully the jsfiddle makes sense.
** EDIT **
I understand that i can add add
$("div.placehold").show();
to the
$(".hoverme1, div.showme1").mouseleave(function () {
but when I do this the as I am mouseleaving the .hoverme1 class the .placehold div replaces the .showme1 and I can no longer mouse into this.
** NEW EDIT **
I can get this working with the following fiddle:
https://jsfiddle.net/513t1qk2/3/
The problem is the mouseleave function, as I am mouseleaving the ".hoverme1" the ".placehold" div comes back into view which knocks the newly appeared ".showme1" field down.