html js click on blank space to close custom popup layer
Usually to make a custom drop-down box, the expanded div needs to be closed after clicking any blank area $(document).on(‘click’,function(e){ var _con = $(‘.ztree,.js_ztree’); // Set the target area (check elements that do not need to be closed when clicking) if(!_con.is(e.target)&&_con.has(e.target).length === 0){ $(‘.ztree’).hide() } }) … The post html js closing custom popup layer […]
html js click on blank space to close custom popup layer Read More »