Skip to content
Advertisement

How do I take input via html input tag on button click and add it to a list USING JQUERY

I am a student and currently learning jquery <– I am trying to make the function that will take input from the inputbox and then add it to the unordered list as an EXTRA

  • Using jQuery create an input and a button. When clicking on the button it should invoke a function addToList that will use the input’s value to add it to the toDos variable. Make sure to render it on the screen as a new list item in the unordered list.

    JavaScript
  • Advertisement

    Answer

    You had several problems which I fixed:

    JavaScript
    User contributions licensed under: CC BY-SA
    1 People found this is helpful
    Advertisement