Stuck on JavaScript and the DOM - 5. jQuery Selectors


#1


JavaScript and the DOM - 5. jQuery Selectors


My code in fact creates the desired result, it returns the [object Object] alert as expected.
I don't however get the exercise's tasks checked, and so am not allowed to click 'Next'.
Neither does the lesson allow me to get the pre-packaged code as before, so I can advance.


/* var skillset = document.getElementsByClassName('skillset');
alert(skillset); */

function main(){
  var $skillset=$('.skillset');
  alert($skillset);
}
$(document).ready(main);


#2

So, the next day it let me through.
I still don't get why the some code is accepted one day while not on the previous, but hey, this is taken care of.


#3

Hmm it could be the browser you are using, chrome isn't too great with codcademy recently.


#4

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