Monday, March 19, 2012

Expand the multiselect box in SharePoint

To make the multselect boxes larger, put the following code in a 'content editor web part' and set it to hidden.  Adjust to your own needs.


//**********************************************************************
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
            $(document).ready(function() {                
                        $('.ms-long select').parent('div').css('width', '320');
                        $('.ms-long select').css('font-size', 'xx-small');
                        $('.ms-long select').css('width', '100%');
            });        
</script>
//**********************************************************************