I\'m a bit stumped as to why the following is not working.
Fiddle here.
The HTML is dynamically created, resulting in something like this: