Solved

Call function when a table row is clicked

Posted on 2012-03-22
1
240 Views
Last Modified: 2012-08-14
Please let me know how I can call a function when a row in a table is clicked. The function must be passed an object as a parameter.

I have an array of objects objArray. If the user clicks the second row in the table, I must pass objArray[1] as a parameter to the function.

Thanks!
0
Comment
Question by:dshrenik
1 Comment
 
LVL 13

Accepted Solution

by:
haloexpertsexchange earned 500 total points
ID: 37754216
<tr onclick = "functionName(objArray[1])"></tr>
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This video teaches users how to migrate an existing Wordpress website to a new domain.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now