Is there a way to make this select tag searchable?
How can I modify this select tag for searching purposes?
<div>
<select name="code" id="code">
<option value="">Select Code...</option>
<?php
$rows = ["peter", "jones", "sakthi"];
foreach ($row as $rows) { ?>
<option value="<?php echo htmlentities($row); ?>"><?php echo htmlentities($row); ?></option>
<?php } ?>
</select>
</div>
I have attempted using select2 CDN for making this searchable, however it is causing conflicts with my existing CSS. Can anyone provide me with code that would work for this purpose without affecting the CSS styles?