Is there a way to change the direction of the datalist's options to RTL?
While I'm able to change the direction of the input element, the same doesn't apply to the options of the datalist.
I've attempted setting the dir
attribute to rtl
, but it had no effect.
I also experimented with different styles that typically work for the select element, yet none of them seem to impact the direction of the datalist.
<input list="myData" dir="rtl">
<datalist id="myData" dir="rtl" style="direction: rtl !important">
<option value="first_value">Some RTL Description</option>
<option value="another_value">Another Thing Here</option>
<option value="first_second_third">More Stuff</option>
</datalist>