@slimpens here’s how you can combine the two.
TB.render('component_ID',function(data){
var calculateAndUpdateDom = function(){
var amountInput = $('.amount input').val();
var quantityAmount = $('.quantity input').val();
var calc = amountInput * quantityAmount;
$('#total').html('€'+Number(calc).toLocaleString("es-ES", {minimumFractionDigits: 2}));
};
$('.math-input').keyup(function(){
calculateAndUpdateDom();
});
data.ele.find('.eu-thousands-place-currency input').inputmask('numeric', {
'radixPoint': ',',
'groupSeparator': '.',
'autoUnmask': true,
'rightAlign': false,
'unmaskAsNumber': true,
'autoGroup': true,
'digits': 2,
'digitsOptional': false,
'placeholder': '0,00'
});
});