I have a select control in my php web site i need to show it as a drop down list collapsed and i need to select multiple option, i use the folowing code
echo '<select class="form-control" multiple name="associate" >';
echo "<option value='0' class='form-control' >---Choose Associate---</option>";
foreach ($userarray as $key => $value)
{
if (isset($_REQUEST['associate']))
{
echo "<option value='".$key."' class='form-control' >".$value."</option>";
}
else
{
echo "<option value='".$key."' class='form-control' >".$value."</option>";
}
}
echo '</select>';
The problem is that the drop down look like this in the picture, i need to collapse it not to show it like this .. i dont need to see all the items!! just first one and when i click the others appears