Denmark Puso

Denmark Puso

  • 1.7k
  • 136
  • 2.5k

Button dot show not working?

Sep 20 2019 7:47 AM
when i run the program the div will hide at first. but when i click the button, the div will show quickly and hide again.
 
  1. <script type="text/javascript">  
  2.     function hideOnLoad() {  
  3.         $('#Package').hide();  
  4.     }  
  5.   
  6.     $(document).ready(function () {  
  7.       hideOnLoad();  
  8.       $("#show").click(function(){  
  9.         $("#Package").show();  
  10.       });  
  11.     });  
  12. </script>  
 

Answers (1)