Friday 15 June 2012

To increase the width of "Multiselect" column using Jquery

We can easily increase the size of "Multi-Select" control is SharePoint 2010 document library (Edit Form.aspx)
There are many way to do that:
You can find your solutions here:
a) http://spservices.codeplex.com/wikipage?title=$%28%29.SPServices.SPSetMultiSelectSizes

Unfortunately none of them came to my rescue. (May be i did not know how to implement it)

But i found just another way to do that...

I used following Jquery

$(document).ready(function() {

  $("#FirstBoxIDTakenfromFF").attr('style','width:370px;height:125px');
  $("#SecondBoxIDTakenfromFF").attr('style','width:370px;height:125px');

});
</script>

where FirstBoxIDTakenfromFF and SecondBoxIDTakenfromFF are the ids which you get from your browser