Any reason you're not using jQuery's `attr` method here? Or `prop`, whichever is more appropiate?

Also double quotes please.