I tried a workaround, and it works:
1: set the list-style-type
to none.
ul {
list-style-type: none;
}
2: in your script create an array that holds the arabic letters html hex codes.
var bulletclasses = [" - أ"," - ب"," - ت"];
var i = 0;
3: then when you append a new line to the list, include the hex code with your text.
$("ul").append("<li>" + todoText + bulletclasses[i] + "</li>");
i = i + 1;
I am not good with JS
and CSS
, there might be another way better and cleaner than this, but dynamically setting the symbols can do the job, supposing your list won't exceed 28 items.
I also thought about creating a CSS
class for each Arabic letter then whenever you want to add a new item to list you add this class to each <li>
using js
, that would be tedious.
you can find the hex codes here