
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
jquery-disable-with
Advanced tools
To enable auto-disable options when submitting a form in data-disable-with attributes.
Add-on to jQuery to enable auto-disable options when submitting a form in data-disable-with attributes.
See a demo here
$ npm install --save jquery-disable-with
And check your reference. jQuery is required!
<script src="node_modules/jquery-disable-with/dist/jquery-disable-with.js"></script>
Or using es6:
import DisableWith from 'jquery-disable-with';
Create a form
<form action="//slowaction" method="post">
<input type="email" name="email" required/>
<input type="password" name="password" />
<input type="submit" value="Sign in" />
</form>
Add a submit button:
<input type="submit" value="Sign in" data-disable-with="Signing in..." />
Or a simple button like this:
<button type="submit" data-disable-with="Signing in...">Sign in</button>
Init this libarary:
new DisableWith('data-disable-with');
Run your app and click the sign-in button. When the user is submitting the form, the sign-in button will be disabled, and the text will be changed to 'Signing in...' so that the user won't press it again until the server responds.
required
attribute. Won't action when required fields are empty.FAQs
To enable auto-disable options when submitting a form in data-disable-with attributes.
The npm package jquery-disable-with receives a total of 0 weekly downloads. As such, jquery-disable-with popularity was classified as not popular.
We found that jquery-disable-with demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.