use dynamic attribute to check for disabled (rather than hard-coding 'disabled')