Title: Jquery Show Content on Click of Button Post by: Ravi on September 03, 2014, 11:42:14 PM Iam creating a webpage in which there is a column called Show Information.In each of the columns there is a button .When I click the button Contents should come like name,age from mysql and button should be hidden.So I have a problam in jquery.The info is getting from mysql in first column.but for 2nd button click corresponding info is not showing.but for other buttons ,info is not showing.
I iterated through each td columns 1st method for(var $id=0;$id<count("td_elements");$id++) //iterating through td elements { $(".addButton:eq($id)").hide(); //hiding button $(".ShowContent:eq($id)").hide(); //Show Div } In this method first column content is displayed and button is hidden $(".addButton:eq(0)").hide(); //hiding button $(".ShowContent:eq(0)").hide(); |