Please try is as below.
HTML
<input type="checkbox" name="marks" id="marks" />
<input type="text" name="studentMarks" id="studentMarks">
JS
$(document).ready(function() {
$("#studentMarks").attr('disabled','disabled');
$("#marks").change(function(){
if ($(this).is(':checked')) {
$("#studentMarks").removeAttr('disabled');
}
});
});
LIVE DEMO : JSFiddle