문제

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

도움이 되었습니까?

해결책

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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top