to htmlhow can i add the list in javascript 1

to htmlhow can i add the list in javascript

$(document).ready(function() {
    $("
  • ") .html('Scooter') .appendTo('ul'); });
  • Here is what the above code is Doing:
    1. We’re selecting the ul element and appending a new li element to it.
    2. We’re setting the html of the new li element to Scooter.
    3. We’re appending the new li element to the ul element.

    Similar Posts