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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -