I want to add an attribute to a text node so that I can uniquely identify it. Is there a way to do this in javascript?
-
You could identify it by a) logging a reference to it in a var; b) noting its index amongst its siblings (granted b is not an option if you're moving elements around). Otherwise, as @Matt Ball says in his answer.Mitya– Mitya2012-07-24 17:48:40 +00:00Commented Jul 24, 2012 at 17:48
Add a comment
|