Would anyone be able to provide guidance on how I can merge these two scripts into one? Thank you in advance!
$(document).ready(function(){
if ($('.myContainer').is(':visible')) {
alert('Hello');
}
});
$(document).mouseup(function(e)
{
var container = $(".myContainer");
if (!container.is(e.target) && container.has(e.target).length === 0)
{
container.hide();
}
});