0.0.2 • Published 6 years ago

jquery-prevent v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

jquery-prevent

Simple toggle element to change the normal state of a button to a push state and vice versa

Usage

To change to a push state

$('#element').prevent('store').prevent('block')

To change to a push normal

$('#element').prevent('restore')

To change to a push normal and set an attribute

$('#element').prevent('restore', e => e.val(someValue))

Test