title: knockoutjs get element id through click event
body: <p>I'm using knockoutjs and I currently have something in my view that looks like this:</p>
  
  <pre><code>&lt;img id="myTab1" data-bind="click: pressedTab.bind($data, '#myTab1')" src="images/image1.png"&gt;&lt;/img&gt;
  </code></pre>
  
  <p>This allows me to get the element ID in my view model:</p>
  
  <pre><code>pressedTab = function(tab){
      console.log("Element ID: " + tab);
  }
  </code></pre>
  
  <p>This writes:</p>
  
  <blockquote>
    <p>Element ID: #myTab1</p>
  </blockquote>
  
  <p>However, it's too repetitive to send the name of the img id in the click event. Is there a way to send the img id without explicitly re-writing it?</p>