![]() |
#2
Lvwenjie2019-06-26 17:31
|
jQuery(document).bind('click',function(e){
var target = jQuery(e.target);
if(target.closest("#id").length!=1&&target.closest(".class").length!=1)
{
if($.trim($("#id").val()).length>0){
$('.class').show();
}
}
if(target.closest("#id").length!=1&&target.closest(".class").length!=1)
{
var showcityaz = document.getElementById("showcityaz");
if($(".class").show()){
$(".class").hide();
$('.class').hide();
}
}
}
);