none
JavaScript/JQuery/CSS - How to increase width of a lookup field selection box? RRS feed

  • Question

  • Hi there

    JavaScript/JQuery/CSS - How to increase width of  a lookup field selection box?

    Thanks.

    Thursday, March 2, 2017 7:21 PM

Answers

  • Hi ran009,

    Please firstly get the selectbox title using IE developer tool and then replace the title in the code snippet below to change the select box width:

    In my environment, the select box title is "testlookup possible values", here is the code snippet:

    <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $( document ).ready(function() {
       $("select[title='testlookup possible values']").width(600);
    });
    </script>

    Thanks

    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

    • Marked as answer by ran009 Friday, March 3, 2017 10:06 PM
    Friday, March 3, 2017 3:01 AM