Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js] disable/enable input
rybosom
post
Post #1





Grupa: Zarejestrowani
Postów: 82
Pomógł: 0
Dołączył: 6.09.2004

Ostrzeżenie: (20%)
X----


mam mały problem ze zmodyfikowaniem skryptu, muszę dodać jakby switche, aby po wybraniu
rbRecBICCode zrobić disable ddlRecCountry, ddlRecBankName, ddlRecBranch
natomiast wybierając rbRecBankSelecetion input tbBICCode powinien zrobić się disable

  1. <div class="column s0">
  2. <span class="radio">
  3. <input id="rbRecBICCode" name="RadioGroup1" value="rbRecBICCode" type="radio">
  4. <label for="rbRecBICCode">BIC</label>
  5. </span>
  6. </div>
  7.  
  8. <div class="column s1">
  9. <input name="tbBICCode" maxlength="11" id="tbBICCode" disabled="disabled" onclick="document.getElementById('rbRecBICCode').checked=true;" onfocus="document.getElementById('rbRecBICCode').checked=true;" type="text">
  10. </div>
  11.  
  12. <div class="column s0">
  13. <span class="radio">
  14. <input id="rbRecBankSelecetion" name="RadioGroup1" value="rbRecBankSelecetion" type="radio">
  15. </span>
  16. </div>
  17.  
  18. <div class="column s1">
  19. <select name="ddlRecCountry" id="ddlRecCountry" class="combo" onclick="document.getElementById('rbRecBankSelecetion').checked=true;" onfocus="document.getElementById('rbRecBankSelecetion').checked=true;" style="width: 65%;">
  20. <option value="11">11</option>
  21. <option value="22">22</option>
  22. </div>
  23.  
  24. <div class="column s1">
  25. <select name="ddlRecBankName" id="ddlRecBankName" class="combo" onclick="document.getElementById('rbRecBankSelecetion').checked=true;" onfocus="document.getElementById('rbRecBankSelecetion').checked=true;" style="width: 98%;">
  26. <option value="11">11</option>
  27. <option value="22">22</option>
  28. </div>
  29.  
  30. <div class="column s1">
  31. <select name="ddlRecBranch" id="ddlRecBranch" class="combo" onclick="document.getElementById('rbRecBankSelecetion').checked=true;" onfocus="document.getElementById('rbRecBankSelecetion').checked=true;" style="width: 98%;">
  32. <option value="11">11</option>
  33. <option value="22">22</option>


jakieś sugestie?
Go to the top of the page
+Quote Post

Posty w temacie


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 - 01:06