should use prop() not attr()