how to call the javscript funtion on table row click
Posted
by kumar
on Stack Overflow
See other posts from Stack Overflow
or by kumar
Published on 2010-05-04T16:10:09Z
Indexed on
2010/05/04
16:38 UTC
Read the original article
Hit count: 177
jQuery
hi, I have a javascript function..
<script type="text/javascript">
var RowClick = function() {
$("#mytable").click(
$("#showgrid").load('/Products/List/Items/'));
};
</script>
Can I call this function on onclick event on tr? I am calling something like this?
<tr class="something" onclick="javascript:RowClick()');">
can i call like this? if I call its not loading the URL?
can anybody help me out?
thanks
© Stack Overflow or respective owner