|
@@ -969,13 +969,21 @@ $(document).ready(function() {
|
|
|
symptomInfoHtml += ' <label class="form-check form-check-inline">';
|
|
|
symptomInfoHtml += ' <input id="etcCheck" class="form-check-input" type="checkbox">';
|
|
|
symptomInfoHtml += ' <span class="form-check-label">';
|
|
|
- symptomInfoHtml += ' 기타 ( <input type="text" id="etcContent" class="form-control form-control-sm w150" value="" placeholder="증상 내용"> )';
|
|
|
+ symptomInfoHtml += ' 기타 ( <input type="text" id="etcContent" class="form-control form-control-sm w150" value="" placeholder="증상 내용" disabled> )';
|
|
|
symptomInfoHtml += ' </span>';
|
|
|
symptomInfoHtml += ' </label>';
|
|
|
symptomInfoHtml += ' </div>';
|
|
|
symptomInfoHtml += ' </td>';
|
|
|
|
|
|
- $('#symptomInfo').html(symptomInfoHtml);
|
|
|
+ $('#symptomInfo').html(symptomInfoHtml);
|
|
|
+
|
|
|
+ document.getElementById('etcCheck').onchange = function() {
|
|
|
+ document.getElementById('etcContent').disabled = !this.checked;
|
|
|
+
|
|
|
+ if (!this.checked) {
|
|
|
+ $("#etcContent").val("");
|
|
|
+ }
|
|
|
+ };
|
|
|
});
|
|
|
|
|
|
// 의료진 메모 추가 클릭 이벤트
|