How can I align the numbers in the following option
example to the right (or equal tab spaces) using css or simple jQuery? As I understand, its invalid syntax to use any span
or div
inside the option, so how can this be done?
(These are dynamic options, so I cannot just add
)
Desired output:
Test 1.0
Example 2.0
x y z 5
Select:
<select>
<option>Test 1.0</option>
<option>Example 2.0</option>
<option>x y z 5</option>
</select>