Html and php:
<?php $a = 1380; ?>
<script>
<?php $b = document.write(month); ?>
</script>
<div id="firstshow">
<div id="test1">
<div class="col-xs-5 text-right">
<b><?php echo $a/$b; ?> €/month</b><!-- the result I wish to divide $a from $b -->
</div>
</div>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"><b class="pull-left">36</b>per month
<i class="fa fa-chevron-down pull-right" aria-hidden="true"></i></button>
<ul class="dropdown-menu">
<li><a href="#">12</a></li>
<li><a href="#">24</a></li>
<li><a href="#">36</a></li>
</ul>
</div>
</div>
Below of all div is the script of this (below) jQuery.
jQuery
$("#firstshow .dropdown-menu li a").click(function(){
var month = $('#firstshow button b').text($(this).text());
});
I am trying to combine a dynamic variable $a in php with the variable month as a result of jquery and divide the two them.
Other display HTML