Solved

Call function when a table row is clicked

Posted on 2012-03-22
1
241 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

This article discusses how to create an extensible mechanism for linked drop downs.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

810 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