Kod
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
</head>
<body>
<div onclick="return WyswietlDiv(this);"><a href="">Edytuj</a></div>
<div id="div_edycja" style="visibility: hidden;">TEST</div>
<script type="text/javascript">
function WyswietlDiv(form)
{
document.getElementById("div_edycja").style.visibility="visible";
}
</script>
</body>
</html>
<head>
</head>
<body>
<div onclick="return WyswietlDiv(this);"><a href="">Edytuj</a></div>
<div id="div_edycja" style="visibility: hidden;">TEST</div>
<script type="text/javascript">
function WyswietlDiv(form)
{
document.getElementById("div_edycja").style.visibility="visible";
}
</script>
</body>
</html>
Wyświetl on div#div_edycja tylko na chwilę gdy kliknę w link "Edytuj". Co należałoby poprawić w tym kodzie, żeby ten DIV były wyświetlany już na trwałe od momentu kliknięcia (a nie tylko na chwilę)?