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


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() {
  $('.projects-button').on('click', function() {
    $(this).text('Projects Viewed');



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


In the html, here is my code



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


I mean still does not work taking spaces out.


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


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