JSFiddle - React, Tailwind, and code Playground
by Joe
JavaScript
function bindScript() {
$(document).find('.sel_sel').on("change", function() {
$(this).parent().parent().find('.sel_text').val($(this).val());
});
};
$("#dare_price").keyup(function(){
var price = Number($(this).val());
var total = (price);
$("#total_price_amount").val(total);
});
function updatePrice(val)
{
$("#dare_price").val(val);
$("#dare_price").trigger('keyup');
}
updatePrice(3);