Stuck in jquery, please help, I don't know what's wrong


#1


www.codecademy.com/en/courses/learn-javascript/lessons/javascript-dom/exercises/jquery


Oops! The test returned an error. Maybe you have a syntax error, or a typo. See full error.


Replace this line with your code. 
function main() {
  $('.skillset').hide();
  $('.skillset').fadeIn(1000);
  
  $('.projects').hide();
  
  $('.projects-button').on('click', function() {
		$(this).next().slideToggle(400);
    $(this).toggleClass('active');
    $(this).text('Projects Viewed');
	});
}

$(document).ready(main);


#2

I think the UI marks things incorrect sometimes if there's unnecessary spaces, you could try getting rid of all the extra spacing next to the slide toggle line


#3

In the html, here is my code

<script
src='https://code.jquery.com/jquery-3.1.0.min.js'>

<script
src='js/main.js'>

...It still does not work!!! Thank you for your help.


#4

I mean still does not work taking spaces out.


#5

got it now.
just have to delete every code in js and follow each instruction and run the code.


#6

This topic was automatically closed after 7 days. New replies are no longer allowed.