开发者

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

开发者 https://www.devze.com 2022-12-25 23:29 出处:网络
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:

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, t开发者_高级运维he 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>


OK Sorry, as it seems, there was some other (non-jquery) Javascript code which caused that behaviour. SOLVED

0

精彩评论

暂无评论...
验证码 换一张
取 消