.NET Daily

Recommended Resources


Popular Content


Navigation
Tagadd to cart
Featured

Javascript

How to keep a button disabled until the page is loaded

Posted on May 3rd, 2016.

There are cases when you need to keep a button disabled until the page is rendered. The main reason you may need this is to prevent the user from clicking on a button that is not functional at that point. The easiest way of achieving this is to follow these 2 steps: Disable the button from HTML: <button id="add-to-cart" type="submit"...