Create Text node from query list : jQuery « jQuery « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            
            var list = $("div,p,span").map(function () {
              return this.tagName;
            }).get().join(", ");
            
            
            $("b").append(document.createTextNode(list));


        });
    </script>
  </head>
  <body>
    <body>
          <span>span</span>
          <p>p</p>
          <div>div</div>
          <span>span</span>
    </body>
</html>








30.1.jQuery
30.1.1.Adds two functions into the jQuery namespace.
30.1.2.Adds two plugin methods.
30.1.3.Is jQuery ready
30.1.4.Create Text node from query list
30.1.5.Show the order in the jQuery object.
30.1.6.Pass array returned from jQuery to a function
30.1.7.If jQuery is installed and running