i try it know with this code, but the problem with double submit of the form still exists. I read that I can have so many $(document).ready(function () { }); I need.
<a href="#" id="testlink">Show Test</a> <div id="tpanlegen" style="width: 100%; display: none;"> <form id="teilprojektcreate" action="/test.action" method="post"> <select name="test" id="test" class="textfeld" style="width: 100%;"> <option value="1950">Test 1</option> <option value="2000">Test 2</option> </select> <input id="tpcsubmit" value="Submit" type="submit"> $(document).ready(function () { $('#tpcsubmit').click(function(e) { $('#teilprojektcreate').ajaxSubmit({ beforeSubmit: function() { $('#indicator').show(); }, success: function() { $('#indicator').hide(); $("#col2_content").effect("slide",{ },2000); }, timeout: 3000, target: '#col2_content' }); return false; }); }); </script> </form> </div> <script type="text/javascript"> <script type="text/javascript"> $(document).ready(function () { $('#testlink').bind( 'click', function(e){ $("#tpanlegen").effect("slide",{ },2000 ); }); }); </script> </script> Best Regards Johannes Geppert ------------------------------------------------- web:http://www.jgeppert.com twitter:http://twitter.com/jogep