ID index selector : Selector ID « jQuery « JavaScript DHTML






ID index selector

     


<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <style type="text/css">
        .changeP { font-weight: bold; color:red;}
    </style>

    <script type="text/javascript">
  $(document).ready(function(){
    $("#myID\\.index\\[1\\]").css("border","3px solid red");
  });
    </script>

  </head>
  <body>

  <div id="myID.index[0]">0</div>
  <div id="myID.index[1]">1</div>
  <div id="myID.index[2]">2</div>


  </body>
</html>

   
    
    
    
    
  








Related examples in the same category

1.ID selector
2.ID selector only
3.Select by ID
4.Assign value to DIV with ID
5.Reference by tag name and id
6.Removes the element with the ID "selected" from the set of all paragraphs.
7.Finds the element with the id "myDiv".
8.Finds the element with the id "myID.entry[1]".