Schovavanie poli

Programovacie jazyky, rady, poradňa...
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Schovavanie poli

Príspevok od používateľa mio001 »

Ahojte, ako prosim upravit kod aby sa schovavali aj id cislo_listu, id meno_vlastnika_text a id vlastnik?

Kód: Vybrať všetko

 <script> 
function checkForOther(obj) { 
 if (!document.layers) { 
 var txt = document.getElementById("preukazanie"); 
 if (obj.value == "suhlas") { 
 txt.style.display = "inline"; 
 // gives the text field the name of the drop-down, for easy processing 
 txt.name = "sidlo"; 
 obj.name = ""; 
 } else { 
 txt.style.display = "none"; 
 txt.name = ""; 
 obj.name = "sidlo"; 
 } 
 } 
} 
</script> 

<form name="formular" method="POST" action="nextPage.htm"> 
<select name="sidlo" id="titles" onchange="checkForOther(this)"> 
<option value="suhlas">súhlas vlastníka so sídlom</option>
 <option value="najomna">nájomná zmluva</option>  
</select> 
</form> 
    
    <span id="cislo_listu">Číslo listu vlastníctva</span>
    <input type="text" id="preukazanie" size="21">
        
    <span id="meno_vlastnika_text">Meno vlastníka</span>
    <input type="text" id="vlastnik" size="20">
Dakujem.
94jakub
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2037
Registrovaný: 15 dec 2006, 13:18
Bydlisko: Martin/BA
Kontaktovať používateľa:

Re: Schovavanie poli

Príspevok od používateľa 94jakub »

Napadá ma takto.

Kód: Vybrať všetko

<script> 
function checkForOther(obj) { 
if (!document.layers) { 
var jeden = document.getElementById("jeden"); 
var dva = document.getElementById("dva"); 
if (obj.value == "suhlas") { 
jeden.style.display = "inline"; 
dva.style.display = "inline"; 
// gives the text field the name of the drop-down, for easy processing 
jeden.name = "sidlo"; 
obj.name = ""; 
} else { 
jeden.style.display = "none"; 
dva.style.display = "none"; 
jeden.name = ""; 
obj.name = "sidlo"; 
} 
} 
} 
</script> 

<form name="formular" method="POST" action="nextPage.htm"> 
<select name="sidlo" id="titles" onchange="checkForOther(this)"> 
<option value="suhlas">súhlas vlastníka so sídlom</option>
<option value="najomna">nájomná zmluva</option>  
</select> 
</form> 
    
    <div id="jeden">
    <span id="cislo_listu">Číslo listu vlastníctva</span>
    <input type="text" id="preukazanie" size="21">
    </div>
    
    <div id="dva">
    <span id="meno_vlastnika_text">Meno vlastníka</span>
    <input type="text" id="vlastnik" size="20">
    </div>
Neviem, čo to má robiť a načo meníš name, no tie inputy by som dal tiež do formulára.
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Re: Schovavanie poli

Príspevok od používateľa mio001 »

Super funguje to ale ked to vlozim do tabulky tak to nejde. Mam text v bunke a input vo vedlajsej bunke a schovava len text.

Tu je to vidiet.

Kód: Vybrať všetko

<td width="20%" height="21"> 
    
     
    <div id="jeden">
    <span id="cislo_listu">Číslo listu vlastníctva</span></td>
    <td width="20%" height="21">
    <input type="text" id="preukazanie" size="21"></div></td>
Dakujem.
*****HERO*****
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2446
Registrovaný: 08 máj 2006, 1:34

Re: Schovavanie poli

Príspevok od používateľa *****HERO***** »

to sa ani nedivim, sak v tom kode mas bordel .. mas tam prekrizeny div s bunkou napriklad
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Re: Schovavanie poli

Príspevok od používateľa mio001 »

To som uz aj hore pisal, ze preto to nejde, len potrebujem mat v kazdej bunku zvlast.

Ked to spojim do jednej bunky zase mi to nabura zvysok designu.

Ako to prosim upravit?

Ide to vobec takto aby bol v jednej bunke jeden prvok?

Dakujem.
*****HERO*****
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2446
Registrovaný: 08 máj 2006, 1:34

Re: Schovavanie poli

Príspevok od používateľa *****HERO***** »

ved v bunke mozes mat co chces, ale nemoze ti v jednej bunke zacinat div a v druhej koncit

hod sem radsej cely kod
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Re: Schovavanie poli

Príspevok od používateľa mio001 »

Kód: Vybrať všetko

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="82">
  <tr>
    <td width="80%" colspan="4" height="19">
    <span style="color: rgb(17, 17, 17); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Sídlo spoločnosti sa preukazuje buď súhlasom vlastníka (ktorý Vám 
    vypracujeme), alebo nájomnou zmluvou.</span></td> 
    <td width="20%" rowspan="4" height="82">&nbsp;</td>
  </tr>
  <tr>
    <td width="40%" colspan="2" height="20">
    
    
   <script> 
function checkForOther(obj) { 
if (!document.layers) { 
var jeden = document.getElementById("jeden"); 
var dva = document.getElementById("dva");
if (obj.value == "suhlas") { 
jeden.style.display = "inline"; 
dva.style.display = "inline"; 
// gives the text field the name of the drop-down, for easy processing 
jeden.name = "sidlo"; 
obj.name = ""; 
} else { 
jeden.style.display = "none"; 
dva.style.display = "none"; 
jeden.name = ""; 
obj.name = "sidlo"; 
} 
} 
} 
</script> 

<form name="formular" method="POST" action="nextPage.htm"> 
<select name="sidlo" id="titles" onchange="checkForOther(this)"> 
<option value="suhlas">súhlas vlastníka so sídlom</option>
<option value="najomna">nájomná zmluva</option>  
</select> 
</form> 
    
   
    
      
       
    </td>
    <td width="20%" height="20">&nbsp;</td>
    <td width="20%" height="20">&nbsp;</td>
  </tr>
  <tr>
    <td width="20%" height="21"> 
    
      <div id="jeden">
    <span id="cislo_listu"  style="color: rgb(17, 17, 17); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">Číslo listu vlastníctva</span>
    
    </div></td>
    
    <td width="20%" height="21"><input type="text" id="preukazanie" size="20"> 
   </td>
   <td width="20%" height="21"> <div id="dva">
    <span id="meno_vlastnika_text" style="color: rgb(17, 17, 17); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">Meno vlastníka</span>
    
    </div> 
        </td> <td> <input type="text" id="vlastnik" size="20"></td>
  </tr> 
  <tr>
    <td width="80%" colspan="4" height="19">&nbsp;</td>
  </tr>
</table>
  </fieldset></form>
94jakub
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2037
Registrovaný: 15 dec 2006, 13:18
Bydlisko: Martin/BA
Kontaktovať používateľa:

Re: Schovavanie poli

Príspevok od používateľa 94jakub »

Ak som správne pochopil tak chceš mať ten input vedľa toho textu?
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Re: Schovavanie poli

Príspevok od používateľa mio001 »

Ano, ale musi byt vo vedlajsej bunke. Mal som to tesne vedla seba (v jednej bunke) a celkovo to nepasovalo do struktury.

Dakujem.
*****HERO*****
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2446
Registrovaný: 08 máj 2006, 1:34

Re: Schovavanie poli

Príspevok od používateľa *****HERO***** »

a co tak schovat cely riadok?

tie divy zrus a trku prirad nejake id, napr to tvoje <tr id="jeden">

v javascripte potom pomaz tie riadky tykajuce sa toho druheho divu s id "dva" a tento riadok uprav

Kód: Vybrať všetko

jeden.style.display = "inline";
na

Kód: Vybrať všetko

jeden.style.display = "table-row";
pripadne to ries cez visibility collapse a visible, aby si tabulka zachovala format a neskakala
94jakub
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2037
Registrovaný: 15 dec 2006, 13:18
Bydlisko: Martin/BA
Kontaktovať používateľa:

Re: Schovavanie poli

Príspevok od používateľa 94jakub »

Neviem, či je to zrovna najlepšie riešenie ale dá sa to takto.

Kód: Vybrať všetko

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="82">
  <tr>
    <td width="80%" colspan="4" height="19">
      <span style="color: rgb(17, 17, 17); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
        Sídlo spoločnosti sa preukazuje buď súhlasom vlastníka (ktorý Vám 
        vypracujeme), alebo nájomnou zmluvou.
      </span>
    </td> 
    <td width="20%" rowspan="4" height="82">&nbsp;</td>
  </tr>
  <tr>
    <td width="40%" colspan="2" height="20">
      <form name="formular" method="POST" action="nextPage.htm"> 
        <select name="sidlo" id="titles" onchange="checkForOther(this)"> 
          <option value="suhlas">súhlas vlastníka so sídlom</option>
          <option value="najomna">nájomná zmluva</option>  
        </select> 
      </form> 
    </td>
    <td width="20%" height="20">&nbsp;</td>
    <td width="20%" height="20">&nbsp;</td>
  </tr>
  <tr id="jeden">
      <td width="20%" height="21">
        <span id="cislo_listu"  style="color: rgb(17, 17, 17); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">Číslo listu vlastníctva</span>
      </td>
      <td width="20%" height="21">
        <input type="text" id="preukazanie" size="20"> 
      </td>
      <td width="20%" height="21"> 
        <span id="meno_vlastnika_text" style="color: rgb(17, 17, 17); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">Meno vlastníka</span>
      </td>
      <td width="20%" height="21"> 
        <input type="text" id="vlastnik" size="20">
      </td>
  </tr>
  <tr>
    <td width="80%" colspan="4" height="19">&nbsp;</td>
  </tr>
</table>

<script> 
  function checkForOther(obj) { 
    if (!document.layers) { 
    var jeden = document.getElementById("jeden"); 
    if (obj.value == "suhlas") { 
      jeden.style.display = "table-row"; 
      // gives the text field the name of the drop-down, for easy processing 
      jeden.name = "sidlo"; 
      obj.name = ""; 
    } else { 
      jeden.style.display = "none"; 
      jeden.name = ""; 
      obj.name = "sidlo"; 
      } 
    } 
  } 
</script> 
Neviem, čo je krajšie, jednoduchšie a používanejšie ale ja by som to tabuľkou nerobil.
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Re: Schovavanie poli

Príspevok od používateľa mio001 »

Jupi, uz to ide, super dakujem.

Este sa spýtam. Pri dropdown mam ine dve polozky - pri jednej polozke ma byt zobrazene nieco A (titul, meno, priezvisko, ulica, mesto, číslo, psc, rc, datum, vyska)

a

pri druhej polozke ma byt zobrazene nieco ine B (Obchodny nazov, ICO, vyskaB, sidlo, konatel)

Ako toto prosim poriesit?

Dakujem.

Tu je aj kod:

Kód: Vybrať všetko

<form method="POST" action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" u-file="fpweb:///_private/form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" --><fieldset style="padding: 2">
  <legend><font face="Arial"><b>Spoločníci</b></font></legend>
&nbsp;<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="268">
  <tr>
    <td width="60%" colspan="4" height="19">
    <span style="color: rgb(255, 0, 0); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Opíšte Vaše údaje z občianskeho preukazu.</span></td>
    <td width="20%" height="19">&nbsp;</td>
    <td width="20%" rowspan="12" height="242">&nbsp;</td>
  </tr>
  <tr>
    <td width="20%" height="21">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Spoločníkom je:</span></td>
    <td width="20%" colspan="2" height="21"><select size="1" name="D1">
    <option selected>právnicka osoba</option>
    <option>fyzická osoba</option>
    </select></td>
    <td width="20%" height="21">&nbsp;</td>
    <td width="20%" height="21">&nbsp;</td>
  </tr>
  <tr>
    <td width="20%" height="21">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Názov spoločnosti</span></td>
    <td width="20%" colspan="2" height="21">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="21">
    <span style="color: rgb(102, 102, 102); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Sídlo (ulica, číslo, psč, mesto)</span></td>
    <td width="20%" height="21"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="21">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    IČO</span></td>
    <td width="20%" colspan="2" height="21">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="21">
    <span style="color: rgb(102, 102, 102); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Konateľ - titul, meno, priezvisko</span></td>
    <td width="20%" height="21"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Výška vkladu *</span></td>
    <td width="7%" rowspan="2" height="40">
    <input type="text" name="T1" size="20"><br>
&nbsp;</td>
    <td width="33%" colspan="2" rowspan="2" height="40">
    <span style="color: rgb(255, 0, 0); font-family: Arial, sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    * Minimálna výška vkladu každého spoločníka je 750 EUR, súčet všetkých 
    vkladov musí byť min. 5000EUR</span></td>
    <td width="20%" height="20">&nbsp;</td>
  </tr>
  <tr>
    <td width="20%" height="19">&nbsp;</td>
    <td width="20%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="20%" height="15">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Titul</span></td>
    <td width="20%" colspan="2" height="15">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="15">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Trvalé bydlisko - Ulica</span></td>
    <td width="20%" height="15"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Meno</span></td>
    <td width="20%" colspan="2" height="19">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Číslo</span></td>
    <td width="20%" height="19"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Priezvisko</span></td>
    <td width="20%" colspan="2" height="19">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Mesto</span></td>
    <td width="20%" height="19"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Rodné číslo</span></td>
    <td width="20%" colspan="2" height="19">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    PSČ</span></td>
    <td width="20%" height="19"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Dátum narodenia</span></td>
    <td width="20%" colspan="2" height="19">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="19">&nbsp;</td>
    <td width="20%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Výška vkladu *</span></td>
    <td width="10%" height="19"><input type="text" name="T1" size="20"></td>
    <td width="30%" height="19" colspan="2">
    <span style="color: rgb(255, 0, 0); font-family: Arial, sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    * Minimálna výška vkladu každého spoločníka je 750 EUR, súčet všetkých 
    vkladov musí byť min. 5000EUR</span></td>
    <td width="20%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="20%" height="25">
    <input type="button" value="Odobrať spoločníka" name="B3" style="font-family: Arial; font-size: 9pt"></td>
    <td width="20%" colspan="2" height="25">&nbsp;</td>
    <td width="20%" height="25">&nbsp;</td>
    <td width="20%" height="25">&nbsp;</td>
  </tr>
</table>
  </fieldset></form>
94jakub
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2037
Registrovaný: 15 dec 2006, 13:18
Bydlisko: Martin/BA
Kontaktovať používateľa:

Re: Schovavanie poli

Príspevok od používateľa 94jakub »

Prepisovať sa mi to nechce, tak len napíšem. :)
Ja by som si to rozdelil na dve tabuľky.
A podľa toho, čo bude vybraté (onChange na ten select) zobrazí danú tabuľku.
Urobiť si to snáď dokážeš sám.

Inak pri týchto veciach by si si mal dávať pozor aby si neskryl niečo dôležité.
Ak niekto nebude mať povolený JavaScript, tak by mu to mohlo robiť problémy.
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Re: Schovavanie poli

Príspevok od používateľa mio001 »

Mate na mysli spolu tri tabulky?

1. Tabulka select - dropdown
2. Tabulka - Fyzicka osoba
3. Tabulka - Pravnicka osoba

Takto?

Dakujem.
94jakub
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2037
Registrovaný: 15 dec 2006, 13:18
Bydlisko: Martin/BA
Kontaktovať používateľa:

Re: Schovavanie poli

Príspevok od používateľa 94jakub »

Yop.
Akurát na jeden select nemusíš vytvárať tabuľku, takže tú prvú teoreticky nepotrebuješ.
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Re: Schovavanie poli

Príspevok od používateľa mio001 »

Dakujem za info:

Tu je kod bez tabulky aby ho bolo menej.

Kód: Vybrať všetko

   <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Názov spoločnosti</span>
    <input type="text" name="T1" size="20">
    <span style="color: rgb(102, 102, 102); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Sídlo (ulica, číslo, psč, mesto)</span>
    <input type="text" name="T1" size="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    IČO</span>
    <input type="text" name="T1" size="20">
    <span style="color: rgb(102, 102, 102); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Konateľ - titul, meno, priezvisko</span>
    <input type="text" name="T1" size="20">
  
  
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Výška vkladu *</span>
    <input type="text" name="T1" size="20">
    <span style="color: rgb(255, 0, 0); font-family: Arial, sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    * Minimálna výška vkladu každého spoločníka je 750 EUR, súčet všetkých 
    vkladov musí byť min. 5000EUR</span></td>
  
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Titul</span>
    <input type="text" name="T1" size="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Trvalé bydlisko - Ulica</span>
    <input type="text" name="T1" size="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Meno</span>
    <input type="text" name="T1" size="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Číslo</span>
    <input type="text" name="T1" size="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Priezvisko</span>
    <input type="text" name="T1" size="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Mesto</span>
    <input type="text" name="T1" size="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Rodné číslo</span>
    <input type="text" name="T1" size="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    PSČ</span>
    <input type="text" name="T1" size="20">
  
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Dátum narodenia</span>
    <input type="text" name="T1" size="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Výška vkladu *</span>
    <input type="text" name="T1" size="20"></td>
    <span style="color: rgb(255, 0, 0); font-family: Arial, sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    * Minimálna výška vkladu každého spoločníka je 750 EUR, súčet všetkých 
    vkladov musí byť min. 5000EUR</span>
    
    <input type="button" value="Odobrať spoločníka" name="B3" style="font-family: Arial; font-size: 9pt">
Ako mam upravit select a ostatne prvky?

Dakujem.,
94jakub
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2037
Registrovaný: 15 dec 2006, 13:18
Bydlisko: Martin/BA
Kontaktovať používateľa:

Re: Schovavanie poli

Príspevok od používateľa 94jakub »

Si to nevieš sám spraviť?
Princíp je podobný ako v tej prvej tabuľke, čo si sem dával.

Alebo rovno napíš, že to potrebuješ dať niekomu spraviť.
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Re: Schovavanie poli

Príspevok od používateľa mio001 »

Keby som to vedel, pisem do kodu a nie sem.

Idem postupne.

Takto moze byt ten select upraveny?

Kód: Vybrať všetko

<select size="1" name="spolocnici" onchange="moznost(this)">
    <option selected value="pravnicka">právnicka osoba</option>
    <option value="fyzicka">fyzická osoba</option>
    </select>
vlozil som tam name, ID, ID

onChange je dobre vlozeny? CO znamena this? (tento? Je to len poznamka alebo prikaz)
94jakub
Guru wannabe
Guru wannabe
Používateľov profilový obrázok
Príspevky: 2037
Registrovaný: 15 dec 2006, 13:18
Bydlisko: Martin/BA
Kontaktovať používateľa:

Re: Schovavanie poli

Príspevok od používateľa 94jakub »

Tu to máš. Design si uprav ako chceš.

Kód: Vybrať všetko

<form method="POST" action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" u-file="fpweb:///_private/form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" --><fieldset style="padding: 2">
  <legend><font face="Arial"><b>Spoločníci</b></font></legend>
&nbsp;
    <span style="color: rgb(255, 0, 0); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Opíšte Vaše údaje z občianskeho preukazu.</span>
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Spoločníkom je:</span>
    <select size="1" name="D1" onChange="vyberTabulky(this)">
        <option selected value="pravnicka">právnicka osoba</option>
        <option value="fyzicka">fyzická osoba</option>
    </select>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="150" id="pravnickaOsoba">
  <tr>
    <td width="20%" height="21">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Názov spoločnosti</span></td>
    <td width="20%" colspan="2" height="21">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="21">
    <span style="color: rgb(102, 102, 102); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Sídlo (ulica, číslo, psč, mesto)</span></td>
    <td width="20%" height="21"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="21">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    IČO</span></td>
    <td width="20%" colspan="2" height="21">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="21">
    <span style="color: rgb(102, 102, 102); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Konateľ - titul, meno, priezvisko</span></td>
    <td width="20%" height="21"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="20">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Výška vkladu *</span></td>
    <td width="7%" rowspan="2" height="40">
    <input type="text" name="T1" size="20"><br>
&nbsp;</td>
    <td width="33%" colspan="2" rowspan="2" height="40">
    <span style="color: rgb(255, 0, 0); font-family: Arial, sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    * Minimálna výška vkladu každého spoločníka je 750 EUR, súčet všetkých 
    vkladov musí byť min. 5000EUR</span></td>
    <td width="20%" height="20">&nbsp;</td>
  </tr>
        <tr>
            <td width="20%" height="19">&nbsp;</td>
            <td width="20%" height="19">&nbsp;</td>
        </tr>
    </table>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="268" id="fyzickaOsoba">
  <tr>
    <td width="20%" height="15">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Titul</span></td>
    <td width="20%" colspan="2" height="15">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="15">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Trvalé bydlisko - Ulica</span></td>
    <td width="20%" height="15"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Meno</span></td>
    <td width="20%" colspan="2" height="19">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Číslo</span></td>
    <td width="20%" height="19"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Priezvisko</span></td>
    <td width="20%" colspan="2" height="19">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Mesto</span></td>
    <td width="20%" height="19"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Rodné číslo</span></td>
    <td width="20%" colspan="2" height="19">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    PSČ</span></td>
    <td width="20%" height="19"><input type="text" name="T1" size="20"></td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Dátum narodenia</span></td>
    <td width="20%" colspan="2" height="19">
    <input type="text" name="T1" size="20"></td>
    <td width="20%" height="19">&nbsp;</td>
    <td width="20%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="20%" height="19">
    <span style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    Výška vkladu *</span></td>
    <td width="10%" height="19"><input type="text" name="T1" size="20"></td>
    <td width="30%" height="19" colspan="2">
    <span style="color: rgb(255, 0, 0); font-family: Arial, sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none">
    * Minimálna výška vkladu každého spoločníka je 750 EUR, súčet všetkých 
    vkladov musí byť min. 5000EUR</span></td>
    <td width="20%" height="19">&nbsp;</td>
  </tr>
  </table>
  <input type="button" value="Odobrať spoločníka" name="B3" style="font-family: Arial; font-size: 9pt">
  </fieldset></form>

  <script type="text/javascript">
  function vyberTabulky(obj) { 
    if (!document.layers) { 
        fyzickaOsoba = document.getElementById('fyzickaOsoba');
        pravnickaOsoba = document.getElementById('pravnickaOsoba');
    if (obj.value == "pravnicka") { 
        pravnickaOsoba.style.display = "table";
        fyzickaOsoba.style.display = "none";
    } else { 
        fyzickaOsoba.style.display = "table";
        pravnickaOsoba.style.display = "none";
      }
    } 
  } 
  </script>
mio001
Amateur
Amateur
Príspevky: 30
Registrovaný: 05 okt 2007, 8:18

Re: Schovavanie poli

Príspevok od používateľa mio001 »

Jo, to je super, len po uvodnom nacitani ma zobrazit len polia pre pravnicku osobu. Teraz ich pod sebou zobrazi vsetky. Vzdy maju byt viditelne polia podla toho co je vybrate v select.

Ako to prosim upravit?

Dakujem.
Napísať odpoveď