Hi guys! I'm trying to display the current date into a span tag, which I manage using the following code -
Code:
<input id="duration" class="duration1" type="text" >
 <span id="txt1"></span>
 <script type="text/javascript">
var today = new Date()
today.setDate(today.getDate());
document.getElementById("txt1").innerHTML = today;

</script>
What i would like to do now is add the value of the input to the current date. The number in the input will be between 3-14 days, so the date will need to increment to whatever value is entered. When the date is displayed, it should be displayed like so "05-Jul-13" and of course dependant on what number is entered into the input, for example 5 the date will display 10-Jul-13 if that is possible?

Thanks!