How to disable date field when check box is unchecked and enable when checked in CAF.

I have used grid panel and put check box in one column and Date input in other column. where to insert the java-script for the above logic.