javascript - Alert box not closing -


please div alert box...it doesn't close on click event

<script type="text/javascript">     $(document).ready(function(){        $('.nof-close').click(function(){             $('.afp-p-now').fadeout();             $('.afp-p-now').css('display','none');          });       });      </script>  <div class="flash-messages container afp-p-now">         <div class="flash flash-notice">welcome website...you viewing me           <span class="mini-icon mini-icon-remove-close nof-close close"></span>         </div>         </div> 

any idea appreciated.thanks.

that because there nothing click on, span has no content. try this:

<script type="text/javascript"> $(document).ready(function(){        $('.nof-close').click(function(){         $('.afp-p-now').fadeout();             });     }); </script> <div class="flash-messages container afp-p-now">      <div class="flash flash-notice">welcome website...you viewing me            <span class="mini-icon mini-icon-remove-close nof-close close">[click here close]</span>      </div> </div> 

you change span button (<button class="mini-icon mini-icon-remove-close nof-close close">close</button>) .


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -