compatibility with ie8

call input.attr('readonly') returns 'readonly' wrong in some cases