I want to send a dynamic data in calc() of csss on every change ,Showing you some code to understand the requirement
I am getting my data in class countDist and want send in place of 33 in calc function
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="progress-group">
<div class="countDist"></div>
<div class="progress sm">
<div class="progress-bar progress-bar-red" style="width: calc((100%)-33/100)"></div </div>
</div>
$.getJSON('timeLineDataforDistToState', {
stateCode: $(this).val(),
ajax: 'true'
}, function(data) {
var a = data;
$('.countDist').html(a);
});
calc()
is irrelevant