Example with postfix
// Example with postfix (large) $("input[name='demo1']").TouchSpin({ postfix: '%' });
With prefix
// With prefix $("input[name='demo2']").TouchSpin({ prefix: '%', });
Multiple select boxes
// Multiple select boxes $("input[name='demo_vertical']").TouchSpin({ verticalbuttons: true, });
Vertical buttons with custom icons
// Vertical buttons with custom icons $("input[name='demo_vertical2']").TouchSpin({ verticalbuttons: true, verticalup: '<svg> ... </svg>', verticaldown: '<svg> ... </svg>', });
Value attribute is not set (applying settings.initval)
// Value attribute is not set (applying settings.initval) $("input[name='demo3_21']").TouchSpin({ initval: 40 });
Button postfix
// Button postfix $("input[name='demo4']").TouchSpin({ postfix: "Button", postfix_extraclass: "btn btn-outline-info", });
Change button class
// Change button class $("input[name='demo6']").TouchSpin({ buttondown_class: "btn btn-classic btn-danger", buttonup_class: "btn btn-classic btn-success" });
Copyright © 2020 DesignReset, All rights reserved.
Coded with