knockout.js - modify DOM in current item in list (expand list item subsection) using templates
问题 In this example I want to use knockout.js to allow the "Expand" link to be clicked and have its text changed to "Collapse". I also want to set the make the jobDetails section visible. This is a very general question of how to get knockout.js to specifically modify the DOM of the "current" item in a list using a click handler. <script type="text/html" id="job-template"> <div class="jobContainer"> <label data-bind="text: JobTitle"></label> <label data-bind="text: CompanyName"></label> <div