How to get the id value from check box?
<p>1   naga    naga123</p>

<p>2   Tamil   tamil123    </p>

<p>3   vinod   vinod123    </p>

<p>4   naveen  naveen123   </p>

<p>5   jakkir  jakkir123   </p>

<pre><code>save    edit    delete

 UserID:

 UserName:

 Password: 
</code></pre>

<p>I have check box at the end of each row. When I click the check box and select edit the values should get displayed in the text boxes corresponding to userId, userName &amp; Password.</p>

<p>My js code for edit is</p>

<pre><code>     function Edit(){
     var i=dwr.util.getValue("userId");
     LoginManagement.selectId(i,function(login){
     dwr.util.setValues({userId:userId, userName:login.userName,
     passWord:login.passWord});     
     });
     }
</code></pre>

<p>My js code for checkbox is </p>

<pre><code>         function Intialize(){
        LoginManagement.getLoginDetails(function(loginList){
         var x = "";
         for(var i=0; i&lt;loginList.length; i++){
          var login =loginList[i];
          x += "&lt;tr&gt;&lt;td&gt;"+login.userId+"&lt;/td&gt;&lt;td&gt;"+login.userName+"&lt;/td&gt;&lt;td&gt;"+login.passWord+"&lt;/td&gt;&lt;td&gt;&lt;input type = 'checkbox' id = 'cbid"+login.userId+"'&lt;/td&gt;&lt;/tr&gt;";
        }
        $("#loginTable").html(x);

            });
                }
</code></pre>

<p>How should i get the id value in edit so that if i click the button it should display the values corresponding. Any suggestion please?</p>
