html - <select> CSS and jquery -
i facing problem jquery , css. need show div id login-alert whenever selects dropdown list of options. tried not working. please me this. missing here?
<script> $('.menu option').each(function() { <?php if (!is_user_logged_in()): ?> $('#login-alert').css('display', 'block !important'); <?php endif; ?> }; </script>
for menu class please set .change(function(){...})
when have change option in menu function calls
<script> $('.menu').change(function() { <?php if (!is_user_logged_in()): ?> $('#login-alert').css('display', 'block !important'); <?php endif; ?> }; </script>
Comments
Post a Comment