JQuery JavaScript Tutorial

< html>
  
    
    
        $(document).ready(function(){
                
            var mappedItems = $("li").map(function (index) {
              var replacement = $("
  • ").text($(this).text()).get(0);
                  if (index == 0) {
                    $(replacement).text($(replacement).text().toUpperCase());
                  } 
                  return replacement;
                });
                $("#results").append(mappedItems);
                        
            });
        
      
      
        
              

                  
    • Abc

    •             
    • Bcd

    •             
    • Cde

    •