jquery-prevent

0.0.2 • Public • Published

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

/jquery-prevent/

    Package Sidebar

    Install

    npm i jquery-prevent

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    2.45 kB

    Total Files

    5

    Last publish

    Collaborators

    • saulsluz