read only textfeilds

Why dont the console.log statements work at all?