JSFiddle - React, Tailwind, and code Playground
HTML
<div id="rozklad">
<div class="title">Задачи на сегодня</div>
<div class="line">
<input type="checkbox" value="1"/>
<input type="text" value="Напишите задачу"/>
</div>
<div class="line">
<input type="checkbox" value="1"/>
<input type="text" value="Напишите задачу"/>
</div>
<input type="button" value="Добавить задачу" id="more"/>
</div>
JavaScript
$(".line :checkbox").live("click", function(){
if ($(this).is(":checked")==true){
$(this).parent(".line")
.find(":text")
.attr({"disabled":"disabled" })
}else{
$(this).parent(".line")
.find(":text")
.removeAttr("disabled")
}
})