Solved

Call function when a table row is clicked

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

743 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

9 Experts available now in Live!

Get 1:1 Help Now