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?


    Thursday, March 2, 2017 7:21 PM


  • 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="" type="text/javascript"></script>
    <script type="text/javascript">
    $( document ).ready(function() {
       $("select[title='testlookup possible values']").width(600);


    Best Regards

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

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