Simple form not working anymore, since adding jquery tablesorter on same page

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-04-05T23:52:49Z Indexed on 2010/04/06 0:13 UTC
Read the original article Hit count: 714

Filed under:
|
|

Hi, I'm using jquery and tablesorter plugin to sort a table in a php-page, which works flawless.

Further I have this form in it:

<form name="newrs" id="newrs" action="edit.php" enctype="multipart/form-data" method="POST" onSubmit="">

<input class="btn" id="bbtnNew" name="button" type="submit" value="New Recordset" />
</form>

But since I added the jquery/tablesorter functionality, the form doesn't work anymore. (If I click on submit, nothing happens.

  • What causes this behaviour?
  • And how can I overcome this?

Thanks in advance for your suggestions!

.... Initializing the tablesorter with this code:

    <script type="text/javascript">
    $(document).ready(function() 
    { 
        $("#myTable").tablesorter( { sortList: [ [4,1] ] , widgets: ['zebra'] } ); 
    } 
    ); 
     </script>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about submit