Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9112341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:42:45+00:00 2026-06-17T03:42:45+00:00

I am trying to use the example based here: http://www.techtricky.com/jquery-code-to-show-time-in-different-countries/ However I am new

  • 0

I am trying to use the example based here: http://www.techtricky.com/jquery-code-to-show-time-in-different-countries/

However I am new to JS and am having trouble. I am basically trying to get it to show the time without the select box.

I will then be trying to show multiple different times at once.

e.g.

+——————+
| 10:14:14 pm |
| 08:14:14 pm |
| 06:14:14 pm |
+——————+

I realise that the var options allows me to set the style and the time offset. However the function is the bit I am confused. I’ve been trying to set the #zones to automatically run but can’t get it to without having to select something. (ideally I wouldn’t have the select in there at all, I tried setting a default to the zones select but that didn’t work either) I think it’s because the function has $(“#zones”).change so will only run on a change.

TIA!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T03:42:46+00:00Added an answer on June 17, 2026 at 3:42 am

    You could do something ugly like that
    Obviously you can do it in a loop or something so you don’t have to write your code 3 times like I did here

    Also – There are few examples in the jclock documentation : https://sites.google.com/site/jqueryjclockjs/

        <html>
          <head>
          <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
          <script type="text/javascript" src="http://techtricky.com/wp-content/jquery/jquery.jclock.js"></script>
          <script type="text/javascript">
            $(document).ready(
                function() {
               $('#time-cont1').append('<div class="time"></div>');
                   var options = {
                    format:'<span class=\"dt\">%A, %d %B %I:%M:%S %P</span>',
                    timeNotation: '12h',
                    am_pm: true,
                    fontFamily: 'Verdana, Times New Roman',
                    fontSize: '20px',
                    foreground: 'black',
                    background: 'yellow',
                    utc:true,
                    utc_offset: 8
                  }
    
                  $('#time-cont1 .time').jclock(options);
                  $('#time-cont2').append('<div class="time"></div>');
                   var options = {
                    format:'<span class=\"dt\">%A, %d %B %I:%M:%S %P</span>',
                    timeNotation: '12h',
                    am_pm: true,
                    fontFamily: 'Verdana, Times New Roman',
                    fontSize: '20px',
                    foreground: 'black',
                    background: 'yellow',
                    utc:true,
                    utc_offset: 6
                  }
    
                  $('#time-cont2 .time').jclock(options);
                  $('#time-cont3').append('<div class="time"></div>');
                   var options = {
                    format:'<span class=\"dt\">%A, %d %B %I:%M:%S %P</span>',
                    timeNotation: '12h',
                    am_pm: true,
                    fontFamily: 'Verdana, Times New Roman',
                    fontSize: '20px',
                    foreground: 'black',
                    background: 'yellow',
                    utc:true,
                    utc_offset: -5
                  }
    
                  $('#time-cont3 .time').jclock(options);
             });
            </script>
    
          </head>
          <body>
            Country1: <div id="time-cont1"></div>
            Country2:  <div id="time-cont2"></div>
            Country3: <div id="time-cont3"></div>
          </body>
        </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use session data on multiple subdomains: www.example.com my.example.com test.example.com whateversub.example.com
I am trying to use dom4j to validate the xml at http://www.w3schools.com/Schema/schema_example.asp using the
I am trying to extend the JSON.net example given here http://james.newtonking.com/projects/json/help/CustomCreationConverter.html I have another
I'm trying to use ftp_connect('ftp.is.co.za') [for example] in PHP 5 or higher (multiple different
Based on http://ant.apache.org/manual/Types/mapper.html Here's my target: <target name=ms.copy-example> <copy todir=${ms.custom}> <fileset dir=${ms.example}> <include name=build.xml
I'm playing around with jQuery tabs and have a prototype up and running. http://www.omnicom-innovations.com/play/tabsdemo.html
Trying to use the following demo example, using the 80px x 80px snap to
I am trying to use the Microsoft Kinect SDK SlideShow example as the basis
trying to use regex to replace any white space with &nbsp;, inside of example
I am trying to use Astyanax for Cassandra with Java. I tried the example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.