I have an XHTML page where each HTML element has a unique custom attribute, like this:
You can accomplish this with JQuery:
$('[tokenid=14]')
Here's a fiddle for an example.