Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get value of current click element in jquery. When my page loads grid data gets bind in the grid & has a image button which has a dynamic value added like value='<%# Eval("BuilderID") %>'. I want when I click on image button, to get current click imagebutton value using jquery. On imagebutton click a jquery method gets called "copymethod()". I want to do this in this method.
Posted
Updated 26-Sep-14 8:06am
v2

1 solution

Call function like OnClientClick="return Your_Function(this)". And the function would be
C#
function Your_Function(RequiredElement)
{
//Here you will get clicked element as RequiredElement
}

Regards..
 
Share this answer
 

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