Using attr() in example, and fixing example link.