how to call the javscript funtion ontable 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:18 UTC
Read the original article Hit count: 207

Filed under:

hi, I have a javascript funtion..

<script type="text/javascript">
    var RowClick = function() {
        $("#mytable").click(
        $("#showgrid").load('/Products/List/Items/'));
    };
</script>

Can I call this funtion on onclick evnt on tr? I am calling soemthing 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

Related posts about jQuery