This is a bug here. It should read ($elment.prop("checked"). Can you make this part of your change? See the specific discussion of using prop for the "checked" state at http://api.jquery.com/attr/. There may be other scenarios too.