Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

uncaught syntaxerror unexpected token ' var'

Javascript • Asked by Jim Miller

Hi all,

I am getting an error "uncaught syntaxerror unexpected token ' var'" . I'm using this JQuery plugin:
The error is showing up on "var updateTime.
Here is the page that I am adding it to:

Can anyone see what I am doing wrong?

Thanks ahead of time!


 var cl ={  cloud_name: 'downtown' });
 //Script for CountDownTimer
 $("#CountDownTimer").TimeCircles({ time: { Days: { show: false }, Hours: { show: false } }});
  var updateTime = function(){
   var date = $("#date").val();
   var time = $("#time").val();
   var datetime = date + ' ' + time + ':00';
   $("#DateCountdown").data('date', datetime).TimeCircles().start();

// Start and stop are methods applied on the public TimeCircles instance
 $(".startTimer").click(function() {
 $(".stopTimer").click(function() {

// Fade in and fade out are examples of how chaining can be done with TimeCircles
 $(".fadeIn").click(function() {
 $(".fadeOut").click(function() {

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.