1

I have the unordered list like: Engineer 1 Engineer 5 Engineer 11

And I'd like to add a different ID to every li displayed in this . Is there a way how to achieve this via jQuery or Java Script?

<li> tags are getting dynamically.Some times it getting 3 or 10 or more tags.

Sri
  • 179
  • 3
  • 9
  • 19
  • 1
    Can you add the javascript that adds the `
  • ` dynamically? The dynamic adding will need to be taken into account.
  • – Dr Rob Lang Jun 21 '16 at 09:55
  • You can find a generic-code answered here: http://stackoverflow.com/questions/8714090/queryselector-wildcard-element-match/10824813#10824813 No jQuery necessary. – Lorenz Lo Sauer Jun 21 '16 at 10:38