I want to hide a container div with jQuery, I tried to add some code but doesn't work, anyone tell me how to solve this ?
The url is: http://35.201.250.64 In the mobi version, I want to click class .tatx , the id #sidr hide, I use the code bellow:
$(document).ready(function() {
$(".tatx").click(function() {
$("#sidr").css("display", "none!important");
//$("sidr").css("display", "none");
//$("#sidr").hide();
});
});
and I also want to click outside, the id sidr hide too, I tried this code:
$(document).mouseup(function(e){
var container = $("#sidr");
if(!container.is(e.target) && container.has(e.target).length === 0){
container.hide(500);
}
});