Getting error while using Inject JS Script activity

I am getting an error while executing this script in Inject JS Script activity:

Inject js script: TypeError: _clientFunc is not a function

“document.getElementById(‘ctl00_ContentPlaceHolder1_txtHblno’).hasAttribute(‘disabled’);”

Please help me to resolve this error.

Hi,

Script property of Inject JS Script activity should contain a single anonymous function.
For example, you need to write as the following.

"function(e,v){ return document.getElementById('ctl00_ContentPlaceHolder1_txtHblno')hasAttribute(‘disabled’); }"

Please see also the following document.

Regards,