Skip to content

saulsluz/jquery-prevent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published