1- I have a number of weeks from an input field:
$("#numberWeek").on("keyup", function(){
var numberWeek = $(this).val();
console.log(numberWeek);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="number" id="numberWeek" />
2- I have the number of the current week:
var todayDate = new Date();
var currentWeek = (0 | todayDate.getDate() / 7) + 1;
console.log(currentWeek);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
3- How can I display the date that we will find when we start to count from the current week (currentWeek) to the number of weeks that is in the variable numberWeek in this format : 26/07/2018 ?
Thanks in advance for any help.