Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript]Blokowanie checkboxem pola input text
arzach
post
Post #1





Grupa: Zarejestrowani
Postów: 332
Pomógł: 6
Dołączył: 27.11.2008

Ostrzeżenie: (0%)
-----


Tak jak w temacie jak zablokować checkboxem pola input text

Obecnie mam taki kod
  1. <!doctype html>
  2. <html lang="en">
  3. <meta charset="utf-8">
  4. <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
  5. </head>
  6.  
  7.  
  8.  
  9.  
  10. <input type="checkbox" name="add_time_check[]" /> <input type="text" name="add_time[]" disabled="disabled" /><br/>
  11. <input type="checkbox" name="add_time_check[]" /> <input type="text" name="add_time[]" disabled="disabled" /><br/>
  12. <input type="checkbox" name="add_time_check[]" /> <input type="text" name="add_time[]" disabled="disabled" /><br/>
  13. <input type="checkbox" name="add_time_check[]" /> <input type="text" name="add_time[]" disabled="disabled" /><br/>
  14.  
  15.  
  16. $( document ).ready(function() {
  17.  
  18. $("input[add_time_check[]]").click(function() {
  19. alert("Dzia_a!!!");
  20. });;
  21.  
  22. });
  23.  
  24.  
  25.  
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 12:12