EasyUI Forum
September 13, 2025, 04:56:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Jquery Show Content on Click of Button  (Read 6462 times)
Ravi
Newbie
*
Posts: 1


View Profile
« 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();
 

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!