Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

JQuery Syntax Error

Hello,

I am getting a syntax error on line 115 in the code below. I should be an easy fix, but I am not seeing the issue. Help?

<script>
$.noConflict();

jQuery(function($) {
   $("#bird-feeds")
   .hide()
   .rss("http://feeds.feedburner.com/patheos/Ukoy", {
      limit: 4,
      effect: 'show',
      layoutTemplate: '{entries}',
      entryTemplate: '<h3>{title}</h3><div><p>{body}</p></div>'}), 
   function() {
      $("#bird-feeds")
      .show()
      .find('> div')
      .accordion({ heightStyle: 'content' })
   })  // line 115 Uncaught SyntaxError: Unexpected token )        
</script>

<div id="bird-feeds"></div>

1 Answer

Joe - It looks like you didn't close the curly brace on your JQuery function, try running your code through jslint to find any other issues with your JavaScript/JQuery.