smilan Stojic Milan Beograd
Član broj: 359 Poruke: 57 62.108.111.*
Sajt: www.rastko.org.yu
|
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 Stojic Milan Beograd
Član broj: 359 Poruke: 57 62.108.111.*
Sajt: www.rastko.org.yu
|
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.
|
|
| |
|