Jquery function and selector lesson 6 bugs



I'm totally sure that my code is right but I keep getting this error message: there's an error ($e(...).a.cacher is not a function). Here my answer
$(document).ready(function() {
$('button').click(function() {
Can anyone help me with this! I can't complete the course and that's frustrating.

Thanks a million


You have to remember that if you use the jQuery-Selector $(...)
to select

  • a HTML-Element carrying a class Attribute you prepend the class-name with a dot like
  • a HTML-Element carrying a id Attribute you prepend the id-name with a # like
  • a HTML-Element by its HTML-Tag-name like
    $('body') or $('p')
    You can train yourself by playing around



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