instead of getAttribute, you can just use `.attr`