I have mouseover and mouseout events that I want to be binded all the time. i.e. if I mouseover an element, then mouseout, then mouseover, and so on, these event handlers should still trigger. How should I fix this? Right now they are only binding once....
$welcome = $("#welcome");
$welcomeClone = $("#welcome").clone();
$welcome.mouseover(function() {
$welcome.css("height","400px");
});
$welcome.mouseout(function() {
$welcome.hide();
$("#vertical-center").append($welcomeClone)
});
$welcomedoesnt have any events..