[ smilan @ 30.03.2004. 12:43 ] @
| Uh...ovako, imam formu za pirjavu. U jednom redu u tabeli imam dva radio buttona. Kada cekiram jedan otvara mi se ispod postojeceg reda jos jedan i to sve lepo radi pomocu java scripta (onClick="izborDiv.style.visibility='visible'). E, problem je u tome sto kada izaberem drugo dugme ne pojavi se red ispod, sto je naravno u redu, ali ostaje mi praznina. Kako resiti problem.
Pozdrav!
Milan.
P.S. Praznina postoji po defaultu posto je ono drugme chekirano po defaultu. |
[ smilan @ 30.03.2004. 13:53 ] @
Resio sam problem.
<script type="text/JavaScript">
<!--
function prikazi(theTable)
{
if (document.getElementById(theTable).style.display == 'none')
{
document.getElementById(theTable).style.display = 'block';
}
}
//-->
<!--
function sakrij(theTable)
{
if (document.getElementById(theTable).style.display == 'none')
{
document.getElementById(theTable).style.display = 'none';
}
else
{
document.getElementById(theTable).style.display = 'none';
}
}
//-->
</script>
Umesto onClick="izborDiv.style.visibility='visible' koristio sam onfocus="prikazi('izbor');return true, a u prikazu tabele umesto style="visibility:hidden koristio sam style="display: none;".
Mozda ce ovo nekom koristiti.
Pozdrav!
Milan.
Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.