Changed this to `attr` from `data` because `data` doesn’t update the DOM and due to that you cannot use Jquery's Attribute Equals Selectors. More here http://stackoverflow.com/revisions/15651670/3