How to customize the dropdown content of datalist using php and css? I have tried many technique to increase font size but it only shows default style.
here is my code sample
<input type="text" list="itm" name="item" id="item" class="textbox" tabindex="8">
$item=mysqli_query($con,"SELECT itname,itemcode FROM itementry");
echo '<datalist id="itm" width="150%">';
while($row=mysqli_fetch_array($item)){
$itm = $row['itname'] .'|' .$row['itemcode'];
echo '<optgroup>';
echo '<option value="'.$row['itemcode'].'" style="font-size: 50px;">';
echo $itm;
echo '</option>';
echo '</optgroup>';
}
echo '</datalist>';
Kindly tell me what should i have to do.Thank you for response.