none
jQuery - Make dropdown (lookup) read only RRS feed

  • Question

  • Hi,

    I'm looking for a way to disable a lookup column in a NewForm.aspx via jQuery.

    Any thoughts?

    Thanks a lot in advacne

    Thursday, December 29, 2016 3:15 PM

Answers

  • Got it with this:

    $('#cf_1268591 option:not(:selected)').prop('disabled', true);

    • Marked as answer by arevach Thursday, December 29, 2016 3:50 PM
    Thursday, December 29, 2016 3:50 PM

All replies

  • Got it with this:

    $('#cf_1268591 option:not(:selected)').prop('disabled', true);

    • Marked as answer by arevach Thursday, December 29, 2016 3:50 PM
    Thursday, December 29, 2016 3:50 PM
  • Hi arevach,

    Thanks for your sharing and it will help others who stuck with the same question in the forum.

    Best Regards


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

    Friday, December 30, 2016 1:54 AM