When I click on the anchor
<span>Forgot your password? Click <a href="#" id="ForgetPassword">here</a> to retrieve it.</span>
I want to show a form in a dialog
<form action="UsersAccountServlet" id="retrievePasswordForm" method="post">
<label>Email address</label>
<input type="text" name="email" />
<input type="submit" name="retrievePassword"/>
<input type="hidden" name="lang" value="E"/>
<c:if test="${retrivePassResult != null}">
<c:out value="${retrivePassResult}"></c:out>
</c:if>
</form>
I use this jquery script to show the dialog but the dialog i does not appear?
$(document).ready(function() {
$("#ForgetPassword").click(function(){
alert("here");
$("#retrievePasswordForm").dialog();
});
});
http://jsfiddle.net/shernshiou/8rVBm/1/
seems working..
did you include jquery ui?