I am trying to underline an <input type="date">
field using style="text-decoration: underline;"
but it doesn't seem to work. Is there another way to underline the set date value? I would also like to apply this for time.
NOTE I am able to apply font-weight
and color
properties to these inputs but not text-decoration
EDIT
It seems the above is not a sufficient explanation of what I am trying to achieve.
Basically:
<input type="date">
will yield 15-02-17
I am trying something like:
<input type="date" style="text-decoration: underline;">
to yield an underlined 15-02-17
But this does not work. Is there another way?
ANOTHER EDIT
Preferably the solution should be generalized to all browsers.