I have a table which displays the Dynamic rows from server side script .Each rows conatins various values and the first row value contains the link such as "Show/Hide" when we click on "show" it shows the sub rows and when clicked on "hide" it hides the rows. Now the "Show/hide" is dynamic is such way their id is .where $i is dynamic value which takes (0,1,2..so on) Now how do we handle the click of "Show/hide" for each row
var j=0;
$("#mylink"+j).click(function(){
})
//In the above statemnt I can handle only "0th" link and how do we handle the links for 1 ,2 and so on.........