Skip to content

Instantly share code, notes, and snippets.

@cozingo
Created February 22, 2017 12:34
Show Gist options
  • Save cozingo/5c0123c44d5cf9760a0b882e69a5aded to your computer and use it in GitHub Desktop.
Save cozingo/5c0123c44d5cf9760a0b882e69a5aded to your computer and use it in GitHub Desktop.
toggle button to disable/enable
$("#element").prop("disabled", !$("#element").prop("disabled"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment