Jquery JavaScript DHTML


  
    
    
        $(document).ready(function(){
                var parentEls = $("p").parents()
                                      .map(function () { 
                                            return this.tagName; 
                                          })
                                      .get().join(", ");
                $("p").append("" + parentEls + "");
        });
    
  
  
    
          

Hello


          

Hello Again