Disable submit functionality for all forms on a HTML page

前端 未结 8 1556
轻奢々
轻奢々 2021-01-02 00:04

Using the .NET Windows Forms WebBrowser control to show the preview of a page, I\'m using the following approach described in this SO posting to disable all links on the pag

8条回答
  •  心在旅途
    2021-01-02 00:44

    Then you could use a combination of..

    $('form :submit').attr("disabled", "disabled");
    

    and

    $('form').unbind('submit');
    

提交回复
热议问题