Use attr to set disabled attribute for `a` tag, instead of using prop

Since anchor tag `a` doesn't actually support `disabled` attribute. So,
if we use `prop` to disable a link, the css selector `a[disabled]`
won't work. In some css frameworks, such as bootstrap, the anchor won't
have any differences. Using `attr()` will make things different.