simplemodal or my brain bug?

Posted by g0sha on Stack Overflow See other posts from Stack Overflow or by g0sha
Published on 2010-06-01T18:27:09Z Indexed on 2010/06/01 18:33 UTC
Read the original article Hit count: 250

Filed under:
|

Sorry for my Eng. I`m trying to use simplemodal in my project authorization form, but here is a little trouble:

<javascript>
     function usr_init()
     {
         $('div#usrinfo').html("test");
     }
</javascript>
<html>
  <a href="#" onClick='$("#authdiv").modal();'>TEST!</a>
</html>

In authdiv I have a form with onSubmit="usr_init()"; But after automatic close #usrinfo changes to previous value. What to do with this problem?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about simplemodal