Hi,
I have a label like
<label for="Some Feild" >Some Text </label>
Now I want to set the style of display of this label to none
How can I do this ?
Hi,
I have a label like
<label for="Some Feild" >Some Text </label>
Now I want to set the style of display of this label to none
How can I do this ?
Give it an id, then do:
document.getElementById(myLabelId).style.display = "none";
Or, if you didn't mean "by javascript" :
<label for="Some Feild" style="display:none" >Some Text </label>
You can do this many ways. Here are 5 ways Id do it, and 2 methods using jQuery are included.
$('[for="Some Feild"]').css('display','none');
$('[for="Some Feild"]').fadeOut();
document.getElementById(myID).style.display = "none";
[for="Some Feild"] {display:none}
Some Text
All of the above will hide the span.