Resizing value prompt boxes in Cognos Report Studio

Thanks to the following site for the follwoing.

To resize a value prompt insert a snippet of html before it with the following


Then another html snippet afterwards with the code below


var e=document.getElementById('selectSearch');
var myselect = e.getElementsByTagName('select')[0];

This will then resize the element automatically within the page (just don’t ask me how)