Thanks for checking. I realised it's for the checkbox, for disabling the text inputs, but my understanding of the JS is not good so I changed it as little as possible. I've now updated as per your code and it still seems to be working after a quick test.