How do I set the ID of an element (say the newLI element) to iphrase, where i is the value of the index number in an array?
1
Expert's answer
2010-07-27T11:05:55-0400
All HTML tags have a parameter id, for example, <img src ="..." id = "image"> , then in javascript you can use this ID for search, putting before it the # sign. In this example, it will be #image.
Comments
Leave a comment