jquery-prevent
v0.0.2
Published
Simple toggle element to change the normal state of a button to a push state and vice versa
Downloads
2
Readme
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))