Autor Zpráva
radozaj
Profil
Ahoj,
chcel by som v takomto formulari spravit taku vec, aby ked je checknuty prvy input <type='radio'>, tak bude prislusny <input type='text'> pisatelny a druhy <input type='text'> nie (readonly='readonly', pripadne disabled='disabled'), a opacne.
<input type='radio' name='vyber' value='a' checked='checked' />

<input type='text' name='moj' />
<hr />
<input type='radio' name='vyber' value='b' />
<input type='text' name='iny' />
peta
Profil
radozaj
nevidim nic oznacene jako form

jakpsatweb - javascript - priklady - formulare
radozaj
Profil
to je vycuc z formularu, <form> tam mam. Ide o to, ze ked dam onclick="document.getElementById('...').disabled = 'disabled';" tak potom to neviem odvolat, lebo ked dam inde onclic="document.getElement('...').disabled = '';" tak to asi odvolane nebude
habendorf
Profil
onclic="document.getElement('...').disabled = '';" tak to asi odvolane nebude

Jak asi? Tak to zkus, ne?
radozaj
Profil
Aha skusil som a ide to, tak nic, aj tak diki za spravy
Toto téma je uzamčeno. Odpověď nelze zaslat.

0