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

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -