css - change visibility of label tag using jquery -


i have label hidden visibility on page load. how can make visible using jquery

<label for="error" style="margin:100px auto 60px auto;color:red; line-height:40px;font-size:medium;visibility:hidden">error occured</label> 

i able hide it.

  $('label[for="error"]').hide(); 

this doesn't work

 $('label[for="error"]').show();  

change code follows:

<label for="error" style="margin:100px auto 60px auto;color:red; line-height:40px;font-size:medium;display:none">error occured</label> 

i've replaced visibility:hidden display:none.

you can use jquery hide() , show() functions.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -