123<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>4<title> Web effects Display Center </title>5<style type= "Text/css" >6 #testa, #testa2 {position:relative;}7#pop, #pop2 {width:100px; height:130px; position:absolute; left:0px; top:20px; border:solid Red 1px;background:white; z-index:9999;} 8</style>9Ten One<body> A<script type= "Text/javascript" src= "Cxx/jquery.min.js" ></script> -<script type= "Text/javascript" > - functionToggle (ID) the { - varID =document.getElementById (ID); - if(Id.style.display = = ' None ') - { +Id.style.display = ' block ' - } + Else A { atId.style.display = ' None '; - } - } - - functionDealblankdivhide (e, id, DestinationId) - { in vartarget =$ (e.target); - if(Target.closest ("#" +id). Length = = 0){ to varID =document.getElementById (DestinationId); + if(Id.style.display = = ' Block ') - { theId.style.display = ' None ' * } $ } Panax Notoginseng } - the$(function(){ +$ (document). Bind ("click",function(e) { ADealblankdivhide (E, ' Testa ', ' Pop '); theDealblankdivhide (E, ' testa2 ', ' pop2 ')); + }) - }) $ $ -</script> -<span id= "Testa" > the<a onclick= "Toggle (' Pop ')" >onclick</a> -<div id= "Pop" style= "Display:none;" >Wuyi<input type= "checkbox" name = "Test1"/>test1 the<input type= "checkbox" name = "Test2"/>test2 -<input type= "checkbox" name = "Test3"/>test3 Wu<input type= "checkbox" name = "Test4"/>test4 -<input type= "checkbox" name = "Test5"/>test5 About</div> $<span> -<span id= "Testa2" > -<a onclick= "Toggle (' Pop2 ')" >onclick</a> -<div id= "Pop2" style= "Display:none;" > A<input type= "checkbox" name = "Test1"/>test11 +<input type= "checkbox" name = "Test2"/>test22 the<input type= "checkbox" name = "Test3"/>test33 -<input type= "checkbox" name = "Test4"/>test44 $<input type= "checkbox" name = "Test5"/>test55 the</div> the<span> the</br> theFsdfsdfsfsfsdfsfddf</br> -Fsdfsdfsfsfsdfsfddf</br> inFsdfsdfsfsfsdfsfddf</br> theFsdfsdfsfsfsdfsfddf</br> theFsdfsdfsfsfsdfsfddf</br> AboutFsdfsdfsfsfsdfsfddf</br> the the the</body> +jquery hits an area other than DIV to trigger an event