hi
i got little problem. can you give me suggestion.Code:<script type = "text/javascript"> var hours = document.getElementById("totalTime").value; var days = Math.floor(hours/24); var hrs = Math.floor(hours%24); var decimal = hours - Math.floor(hours); var minutes = Math.round(decimal * 60); document.getElementById("actualDays").value= +days+" Day(s) "+hrs+" Hour(s) "+minutes+" Minute(s)"; </script>based on above script i am able to display my values in text box like below.Code:<input name="actualDays" id="actualDays" value="" size="30" readonly="yes"/>
but i need to display these values as a text values (using lable or span....).
can you help me for this


Reply With Quote
Bookmarks