I want to do some calculation in jquery. but I want to do this in a php variable. but to avoid page loading I want the php variable to be made into a jquery variable and then that jquery variable be stored in html. To be honest I want to know would that avoid page loading?
Below is my php variable:
<?php $postduration = $_POST['durationChosen']; ?>
I want the above php code to be in a jquery variable and then I want the jquery variable stored in a html. <span> tag.
Can this be done?