0

I have a Lookup column to another list but I need to display a "Blank" value or a "None" as the first item in the dropdown. The column must remain "Required". Does anyone have a JQuery example of how to do this?

Bismarck

1 Answer 1

0

Demo:

<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script>
$(function () {
      $("select[title='look']").prepend("<option selected>none</option>")

   })

</script>

Tip:on-premise is different from online.The title of required look up column is "columnName Required Field" in SPO,you need to change it.

1
  • It works. Thank You
    – Bismarck
    Commented Jun 4, 2020 at 11:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.