PeterErhard
asked on
Javascript Variable Question
I have the following javascript script which returns the following:
8 Days 20 Hours 52 Minutes 15 Seconds
I'm needing to get each of the values into seperate variables I can use in PHP for a query before I put it into the div named Countdown2. Any ideas on how I could do this?
Basically as follows:
Days = 8
Hours = 20
Minutes = 52
Seconds = 15
8 Days 20 Hours 52 Minutes 15 Seconds
I'm needing to get each of the values into seperate variables I can use in PHP for a query before I put it into the div named Countdown2. Any ideas on how I could do this?
Basically as follows:
Days = 8
Hours = 20
Minutes = 52
Seconds = 15
<script type="text/javascript">
$(function () {
$('#Countdown2').countdown({until:
$.countdown.UTCDate(0,2013,4-1,5,8,30,0,0)});
});
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.