none
OnChange event of lookup type field(javascript/jquery) RRS feed

  • Question

  • Hi,

    How to assign onChange event of lookup type field(javascript/jquery). Want to make read-only another text field based on lookup type field. 

    Thanks in advance.


    Thanks, Ram

    Wednesday, October 23, 2019 8:58 AM

Answers

  • It is about customizations on PDP.

    Found a way to do this. Attaching change event handler as below.

      $("input[title='FieldName']").next().next().find(".tree-results span").click(function() {

                        
                       // do your action
                                                  
                    });


    Thanks, Ram

    Thursday, October 24, 2019 11:54 AM

All replies

  • kodanda ram kanumuri,

    On the surface, this doesn't look like it has anything to do with customizing and programming Microsoft Project, a project management application. I suggest you re-post to the following forum:

    https://social.technet.microsoft.com/Forums/en-US/home?forum=whatforum

    If your issue does relate to Microsoft Project, I suggest you provide more details to better explain what you are trying to do.

    John

    Wednesday, October 23, 2019 6:13 PM
  • It is about customizations on PDP.

    Found a way to do this. Attaching change event handler as below.

      $("input[title='FieldName']").next().next().find(".tree-results span").click(function() {

                        
                       // do your action
                                                  
                    });


    Thanks, Ram

    Thursday, October 24, 2019 11:54 AM