Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript]Wyświetlenie DIV'a po kliknięciu w linki
-Gość-
post
Post #1





Goście







Mam taki kod:

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>


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ę)?
Go to the top of the page
+Quote Post

Posty w temacie
- Gość   [JavaScript]Wyświetlenie DIV'a po kliknięciu w linki   24.03.2014, 16:42:20
- - com   http://jsfiddle.net/DgzLH/   24.03.2014, 16:57:55


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 14:54