Question

I want to fire Click event on my other web part when I select the item in LV web part.

Was it helpful?

Solution

You can use Jquery To execute script when the list item has been selected by doing the following

  • Edit Page.
  • Add Script Editor.
<script src="https://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {

        $(".ms-listviewtable > tbody > tr").click(function(){
            alert("write the code here");
        });       
    });   
</script>
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top