fixed error msg: "Object [object HTMLInputElement] has no method 'prop'"