haiii

i want to generate dynamic buttons(that is , the number of buttons depend on the number in database).... and want to get the value of the button when clicked...how to set the values...

thanksss

Recommended Answers

All 2 Replies

which server side scripting you are using?

you can do this by button, like this
<input type='button' value='some value' onclick='retVal(this);' />

and function retVal will be like this
function retVal(button)
{
return button.value;
}

hope this helps

thanksss.......problem is solved...........:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.