Title: Problem with jQuery sintax
Last modified: August 22, 2016

---

# Problem with jQuery sintax

 *  Resolved [gaff](https://wordpress.org/support/users/gaff/)
 * (@gaff)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/)
 * When plugin renders code like this:
 *     ```
       jQuery(document).ready(function() {
       jQuery('#5712-dashboard').countDown({...
       ```
   
 * it dasn’t work
 * Right sintax:
 *     ```
       jQuery(document).ready(function($) {
       $('#5712-dashboard').countDown({...
       ```
   
 * [https://wordpress.org/plugins/jquery-t-countdown-widget/](https://wordpress.org/plugins/jquery-t-countdown-widget/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/#post-5308824)
 * hmm… thank you for the feedback.. we’ll look into that, for sure.
 *  Thread Starter [gaff](https://wordpress.org/support/users/gaff/)
 * (@gaff)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/#post-5308970)
 * Today WP sad – plugin has new version!
    After updating to new version, I founded
   old problem: [ – it doesn’t work](https://yadi.sk/i/DU8j1G3GbaUsU)
 * [I made changes in main plugin’s php and now it’s working](https://yadi.sk/i/2W2XpwvqbaUtr)
 * I don’t use widget, I use only do_shortcode()
    please, check it one more time
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/#post-5308974)
 * Please provide a link to your page that the issue is appearing on.
 *  Thread Starter [gaff](https://wordpress.org/support/users/gaff/)
 * (@gaff)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/#post-5308975)
 * [http://subaruport.ru/](http://subaruport.ru/)
 *  Thread Starter [gaff](https://wordpress.org/support/users/gaff/)
 * (@gaff)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/#post-5308976)
 * If you need “don’tworking” version, then tell me, I switch off my changes. It’s
   o’k, beacouse the site is underconstruction
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/#post-5308986)
 * Do you also see the JavaScript errors on your page:
 *     ```
       Uncaught TypeError: undefined is not a function careers-min.js:1
       [cycle2] --c2 init-- jquery.cycle2.js:608
       [cycle2] slides: > div (string) jquery.cycle2.js:608
       [cycle2] speed: 6000 (number) jquery.cycle2.js:608
       [cycle2] timeout: 2000 (number) jquery.cycle2.js:608
       [cycle2] fx: fade (string)
       ```
   
 * I think this might have something to do with your issue.
 *  Thread Starter [gaff](https://wordpress.org/support/users/gaff/)
 * (@gaff)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/#post-5308995)
 * [cycle2] – it’s slider of main picture, it’s just info-lines, they are evwry 
   time over there.
    “Uncaught TypeError:..” – firefox sad: “TypeError: h(…).carouFredSel
   is not a function” – it’s really undifined function, but I swith off careers-
   min.js result:
 *     ```
       SyntaxError: 09 is not a legal ECMA-262 octal constant subaruport.ru:281
       "[cycle2] --c2 init--" jquery.cycle2.js:608
       "[cycle2] fx: fade (string)" jquery.cycle2.js:608
       "[cycle2] timeout: 2000 (number)" jquery.cycle2.js:608
       "[cycle2] speed: 6000 (number)" jquery.cycle2.js:608
       "[cycle2] slides: > div (string)" jquery.cycle2.js:608
       SyntaxError: 09 is not a legal ECMA-262 octal constant subaruport.ru:281
       TypeError: jQuery(...).countDown is not a function subaruport.ru:291
       Метод getPreventDefault() является устаревшим. Для его замены используйте метод defaultPrevented. global-min.js:2
       ```
   
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/#post-5309076)
 * Try version 2.2.17b available directly from The Plugin Oven:
    [http://plugins.twinpictures.de/plugins/t-minus-countdown/](http://plugins.twinpictures.de/plugins/t-minus-countdown/)
 * Issue marked as resolved.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Problem with jQuery sintax’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-t-countdown-widget_7b7b7b.
   svg)
 * [jQuery T(-) Countdown Widget](https://wordpress.org/plugins/jquery-t-countdown-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-t-countdown-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-t-countdown-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-t-countdown-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-t-countdown-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-t-countdown-widget/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/problem-with-jquery-sintax/#post-5309076)
 * Status: resolved