I have implemented a jQuery script for login functionality that displays a new div in the center of the page while fading out the rest of the content. It is functioning correctly when I use an anchor tag with the class='login-window' and select it using the following code:
$('a.login-window').click(function() {
});
However, I encountered an issue when I tried to move the anchor tag into a dynamically loaded div using AJAX:
<div id="nav">
<ul class="dropdown dropdown-horizontal">
<li><a href="#login-box" class="login-window">Log In</a></li>
</ul>
</div>
I am unsure how to make this work within the list structure. Any suggestions would be greatly appreciated!