Use Knockout data-binds syntax to attach events to DOM elements

You may be able to improve performance by avoiding using JQuery to access the DOM (Document Object Model) and attaching events to DOM elements.

Instead, use the variables on the widget view models to access and modify any content on the template. You should never access the DOM directly. For more information, seeUnderstand widgets .