Answer the question
In order to leave comments, you need to log in
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.
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
Docks
Bind to touchspin.on.stopspin event
something like this
$('#IDинпута').on('touchspin.on.stopspin', function(){
var price = $(this).val()*100;
// дальнейшие действия с получившейся ценой
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question