hide duplicate values in lookup field on new form list RRS feed

  • Question

  • hi, i use the sharepoint 2010. i have a list with new form where is lookup field from another list. this field has duplicate values. i want that hide or remove those values. i tryed with jquery code

    <script src="http://code.jquery.com/jquery-1.11.0.min.js" type="text/javascript"></script><script>
    $( document ).ready(function() {
    var usedNames = {};
    $("select[Title='Ревизорска област'] > option").each(function () {
        if(usedNames[this.text]) {
        } else {
            usedNames[this.text] = this.value;

    but this code does not works. in debugger window of IE10 i found

    how i hide duplicate values

    • Edited by gogi1000 Monday, September 14, 2020 12:22 PM edit
    Monday, September 14, 2020 12:20 PM

All replies