Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a dynamic table with dynamic buttons for company roster according to the no of days in a month, like a company has 5 employees in month of june, i.e table has 150 buttons and on click of every button text appears "OFF" and i want to read that button ID and Value on submit
Posted
Comments
Prosanta Kundu online 8-Jul-10 7:55am    
Did you want the id & value in client side before submit?

1 solution

If you want the ID and value in client side then add OnClientClick handler in the button

onclientclick="return getIDAndValue(this);"



Create a Javascript function

JavaScript
function getIDAndValue(obj)
{
  var id = obj.id;
  var value = obj.value;
  return true/false;
}
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900