When the Contact button is clicked, how can I move the Close button below #panel? It's currently fixed in position.
Here's my demonstration: https://jsfiddle.net/25u78gff/
https://i.sstatic.net/qDad9.png
jQuery('.sub-menu').addClass('dropdown-menu');
jQuery(document).ready(function($) {
$('ul.nav li.dropdown, ul.nav li.dropdown-submenu').hover(function() {
$(this).find('> .dropdown-menu').stop(true, true).delay(200).fadeIn();
}, function() {
$(this).find('> .dropdown-menu').stop(true, true).delay(200).fadeOut();
});
var abierto = false;
jQuery("#open").click(function() {
if (!abierto) {
jQuery("div#panel").slideDown("slow");
jQuery("#open").html("Close");
abierto = true;
} else {
jQuery("div#panel").slideUp("slow");
jQuery("#open").html("Contact us");
abierto = false;
}
});
});
/* Latest compiled and minified CSS included as External Resource*/
// Additional CSS rules...