should use prop() not attr() (for 4.3 branch)
Merge pull request #544 from DarkSide666/patch-5

should use prop() not attr() (for 4.3 branch)