locked
How to get the onchange event of Managed Metadata in new form SP 2013 RRS feed

  • Question

  • I have a new form which is customized using Hilly Billy. I have a managed metadata column.I want to get the onchange event when some value is added in that form using jQuery.

    I tried onchange() of jQuery but it doesn't work. Please suggest me a solution

    Thursday, September 29, 2016 10:57 AM

Answers

  • Hi,

    We can use .blur() method instead of the .change() method of jQuery to achieve it.

    <script src="//code.jquery.com/jquery-3.1.0.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    	$("div[id^='MMD_FIELD_NAME_HERE']").blur(function() {
    		alert( "Handler for MMD .change() called." );
    	});
    })
    </script>
    

    Best Regards,

    Dennis


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Proposed as answer by Patrick_Liang Friday, October 7, 2016 9:00 AM
    • Marked as answer by Patrick_Liang Tuesday, October 11, 2016 7:53 AM
    Friday, September 30, 2016 6:33 AM