I want this select tag as searchable
How to make this select tag searchable ?
<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'm trying to change this as searchable but i tried select2 CND its affecting my previous CSS. Kindly suggest me a code for this.
Without Select2 / niceSelect its not possible.
But their is one way to take
<select>insidedatalisttag.Try below code: