how to deal with multiple ids in query as i have problem in the following code
<pre><code>&lt;head&gt;
  &lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
    $("input").click(
      function(){
        alert(this.id);
        $('#comments'+this.id).show();
    }
  );
});

&lt;/script&gt;
&lt;style type="text/css"&gt;
 .comments{
  width:500px;
  height:350px;
  background:#06F;
  display:none;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;input type="text" id="1"&gt;&lt;/input&gt;
  &lt;input type="text" class="title" id="2"&gt;&lt;/input&gt;
  &lt;input type="text" class="title" id="1"&gt;&lt;/input&gt;
 &lt;div id="comments1" class="comments"&gt;box 1&lt;/div&gt;
  &lt;div id="comments2" class="comments"&gt;box 2&lt;/div&gt;
 &lt;div id="comments1" class="comments"&gt;box 3&lt;/div&gt;
&lt;/body&gt;
</code></pre>
