className is not a function
I don't understand why doesn't work. somebody can help me? JavaScript Console TypeError: unhide.className is not a function Line: 28 <!DOCTYPE html> <html> <head> <title>Page Title</title> <style type="text/css"> .hidden { display: none; } .visible { display: inline; } </style> <script> function muestra() { var unhide = document.getElementById("text01"); unhide.className("visible") } </script> </head> <body> <p id="text01" class="hidden"> Phasellus magna sem, semper quis, faucibus ut, rhoncus non, mi. Duis pellentesqu</p> <a id="enlace" href="#" onclick="muestra(); return false;">unhide</a> </body> </html>