I have a text field named as "Code" and in the newform.aspx when the user enter some value I need to call some Javascript function. Below is the code snippet to call a Javascript function on text field value change event.
Code Snippet:
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script><script type="text/javascript">
- $(document).ready(function() {
- $("input[title='Code']").change(function() {
- alert($("input[title='Code']").val())
- // Call Javascript function
- });
- });</script>