read min, max, step and value attributes from the element