Hi, How can I underline the text in a web-control Label? Thanks, Hezi
In a <label>?
<style type="text/css"> label { text-decoration:underline; }</style>
Thank you moderator, I intended to ask How can I underline the text in a web-control Label programmaticaly, using javascript? Thanks, Hezi
This is one way:
<label id="the_label">Some text</label> <script type="text/javascript"> document.getElementById("the_label").style.textDecoration = "underline"; </script>
Thank you thraddash, I would like also to go back from underline to plain text .
document.getElementById("the_label").style.textDecoration="";
does not work. Do you have a solution, please? Hezi
This should do it:
<script type="text/javascript"> document.getElementById("the_label").style.textDecoration = "none"; </script>
Thank yoy thraddash, It works Hezi