adapt to jquery api: allow elements to be correctly enabled/disabled, using prop instead of attr