title: Knockout js get specific DOM element ID
body: <p>i am using the knockout js in my web app,i am getting data from database and binding data using knockout js with checkbox its working, when i checked the checkbox i am getting all related data to it,but i need element ID of all the div when i checked the particular checkbox, is it possible or not ,how i can achieve this need help</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div data-bind="foreach:items"&gt;
    &lt;ul data-role="listview"&gt;
      &lt;li&gt;
        &lt;span id="txtuserID" data-bind="text:userId" style="display:none"&gt;&lt;/span&gt;
        &lt;span id="txtuserName" style="margin-top: 10px;font-size: 22px;font- weight: bold;padding-left:0px;" data-bind="text:username"&gt;&lt;/span&gt;
        &lt;div data-bind="attr:{id:$index()}, Image({image});" class="Image"&gt;
       &lt;div id="img1"&gt;&lt;img src=1.png /&gt;&lt;div&gt;
       &lt;div id="img2"&gt;&lt;img src=2.png /&gt;&lt;div&gt;
       &lt;div id="img3"&gt;&lt;img src=3.png /&gt;&lt;div&gt;
         &lt;/div&gt;
        &lt;input id="chkID" type="checkbox" data-bind="value:userId(), checked: $root.addItemTitle, click: $root.toggle" /&gt;&lt;/li&gt;
      &lt;ul&gt;
  &lt;/div&gt;
  
   &lt;!-- language: lang-js --&gt;
  
  function UserDetails() {
    var self = this;
  
    function(userId username) {
      var self = this;
      self.userId = userId;
      self.username = ko.observable(username)
      self.Image=ko.computed(function() {
      return this.Image() + " " + this.Imagetype();
    }, this);
    }
  
    }
    self.addItemTitle = ko.observable();
    //Check Box Selected
    self.toggleAssociation = function(item, event) {
      if (item.Selected() === true) console.log("dissociate item " + item.userId());
      else console.log("associate item " + item.UserID() + " " + "UserName " + item.UserName(), "you clicked " + event.target.id);
      /// here i am getting userID,Username and checkbox element id=chkid, is   it possible to get userName elementID
      item.Selected(!(item.Selected()));
      return true;
    };
     }
  </code></pre>