Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 422 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 422 Bytes

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