should use prop() not attr()
Merge pull request #543 from DarkSide666/patch-4

should use prop() not attr()