Hi,
thanks for looking.
I'm having an issue i cant seem to get the submit function workin.
load login form if needed.
login_box_comment = function(){
$("body").append('<div id="login_form_modal" style="display:none">'+
'<div id="status" align="left">'+
'<center><h1><img src="/ext/login/img/key.png" align="absmiddle"> LOGIN</h1>'+
'<div id="login_response"><!-- spanner --></div> </center>'+
'<form id="login" action="javascript:alert(\"success!\");">'+
'<input type="hidden" name="action" value="user_login">'+
'<input type="hidden" name="module" value="login">'+
'<label>Username</label><input type="text" name="user"><br />'+
'<label>Password</label><input type="password" name="password"><br />'+
'<input type="checkbox" name="autologin" id="autologin" value="1">Log me on automatically each visit<br />'+
'<input type="checkbox" name="viewonline" id="viewonline" value="0">Hide my online status this session<br />'+
'<label><a href="/forum/ucp.php?mode=register">Register</a> | </label><input value="Login" name="Login" id="submit" class="big" type="submit" />'+
'<div id="ajax_loading">'+
'<img align="absmiddle" src="/ext/login/img/spinner.gif"> Processing...'+
'</div>'+
'</form>'+
'</div>'+
'</div>');
$('#login_form_modal').modal();
}
and ths submit function
$("#status > form").submit(function(){
alert('working');
}):