skip to Main Content

enter image description here

I thought I was wrong with jQuery connection but I tested with function(){console.log}
and it worked. but after function addNumber()~ is not work at all…

2

Answers


  1. You probably missed a period in the jquery selector for the section classes that you wrote.

    $('.section_three button').click(function () {
      your_action()
    })
    

    You can go ahead and read up the documentation on how to use jquery selectors properly
    https://api.jquery.com/class-selector/

    Login or Signup to reply.
  2. Line 12 to 23 all use class selectors with a period, after that it seems like you’ve forgotten the period in all instances of 'section_' + a which should be '.section_' + a. This doesn’t answer your question but there’s also the output element which not many people know about: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output

    I have to add, I never comment or ask questions but in this case I do recommend you try to ask your questions more clearly and do some research before asking because your questions amounts to: I don’t know what I’m doing wrong, please find my errors

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search