Here i will show how to how to use the j query events like key press and on click events in share point.The below peace of code i have used to get the event.i just used two functions one is for key press events and other one is for click event.The main thing here is we should add the j query library to share point application
script>
<script type="text/javascript"> $('#ctl00_inputTextField').keypress(function() { getdata(); }); function getdata() { alert("key press event"); } //onclick $(function(){ function clickfunction(event) { alert('click event'); } $('#ctl00_inputBtnField').click(clickfunction); }); </script>
No comments:
Post a Comment