L
L
lasermedcentre2015-02-13 12:54:36
JavaScript
lasermedcentre, 2015-02-13 12:54:36

How to display a number from the form multiplied by a coefficient in bootstrap-touchspin?

There is a cool tool for creating counters (an input form for numbers with arrows) for Bootstrap - https://github.com/istvan-ujjmeszaros/bootstrap-to... It begs
to be used in "calculators" (for example, in a shopping cart). Those. the number entered in the field (or changed by arrows, or by scrolling) must be displayed next to it, multiplied by the coefficient.
99268fdc-b367-11e4-9170-02029a4c179f.png
PS or advise an open free spinner for 3 bootstrap with data validation (so that letters cannot be entered) and working on mobile devices as well.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2015-02-13
@lasermedcentre

Docks
Bind to touchspin.on.stopspin event
something like this

$('#IDинпута').on('touchspin.on.stopspin', function(){
    var price = $(this).val()*100;
    // дальнейшие действия с получившейся ценой
});

O
Oleg P, 2017-10-10
@olpro

Try another scheduler, nnCron for example. Set up process tracking through it and further as desired.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question