0
<div class="textarea textMsg" contenteditable="true"
data-bind="value: textMsg, valueUpdate:'afterkeydown'"></div>
<button type="button" data-bind="click: save, enable: textMsg().length > 0 ">
<span data-bind="visible: !sending()">Send</span>
<span data-bind="visible: sending()">Sending</span>
</button>
有効なのはなぜですか:textMsg()。length> 0テキストが入力された場合は検出されませんが、テキストエリアでは動作しますが編集可能なdivでは機能しません編集可能なdivでボタンを有効/無効にする方法js