Форум программистов, компьютерный форум, киберфорум
JavaScript для начинающих
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.57/7: Рейтинг темы: голосов - 7, средняя оценка - 4.57
1 / 1 / 1
Регистрация: 12.08.2019
Сообщений: 46

Как сделать выбранный input валидным, если он не заполнен?

06.09.2019, 23:26. Показов 1626. Ответов 12
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab
 
function showTab(n) {
  // This function will display the specified tab of the form ...
  var x = document.getElementsByClassName("tab");
  x[n].style.display = "block";
  // ... and fix the Previous/Next buttons:
  if (n == 0) {
    document.getElementById("prevBtn").style.display = "none";
  } else {
    document.getElementById("prevBtn").style.display = "inline";
  }
  if (n == (x.length - 1)) {
    document.getElementById("nextBtn").innerHTML = "Рассчитать стоимость шкафа >>";
  } else {
    document.getElementById("nextBtn").innerHTML = "Следующий шаг";
  }
  // ... and run a function that displays the correct step indicator:
  fixStepIndicator(n)
}
 
function nextPrev(n) {
  // This function will figure out which tab to display
  var x = document.getElementsByClassName("tab");
  // Exit the function if any field in the current tab is invalid:
  if (n == 1 && !validateForm()) return false;
  // Hide the current tab:
  x[currentTab].style.display = "none";
  // Increase or decrease the current tab by 1:
  currentTab = currentTab + n;
  // if you have reached the end of the form... :
  if (currentTab >= x.length) {
    //...the form gets submitted:
    document.getElementById("modal__step1").submit();
    return false;
  }
  // Othvar currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab
 
function showTab(n) {
  // This function will display the specified tab of the form ...
  var x = document.getElementsByClassName("tab");
  x[n].style.display = "block";
  // ... and fix the Previous/Next buttons:
  if (n == 0) {
    document.getElementById("prevBtn").style.display = "none";
  } else {
    document.getElementById("prevBtn").style.display = "inline";
  }
  if (n == (x.length - 1)) {
    document.getElementById("nextBtn").innerHTML = "Рассчитать стоимость шкафа >>";
  } else {
    document.getElementById("nextBtn").innerHTML = "Следующий шаг";
  }
  // ... and run a function that displays the correct step indicator:
  fixStepIndicator(n)
}
 
function nextPrev(n) {
  // This function will figure out which tab to display
  var x = document.getElementsByClassName("tab");
  // Exit the function if any field in the current tab is invalid:
  if (n == 1 && !validateForm()) return false;
  // Hide the current tab:
  x[currentTab].style.display = "none";
  // Increase or decrease the current tab by 1:
  currentTab = currentTab + n;
  // if you have reached the end of the form... :
  if (currentTab >= x.length) {
    //...the form gets submitted:
    document.getElementById("modal__step1").submit();
    return false;
  }
  // Otherwise, display the correct tab:
  showTab(currentTab);
}
function validateForm() {
  // This function deals with validation of the form fields
  var x, y, i, valid = true;
  x = document.getElementsByClassName("tab");
  y = x[currentTab].getElementsByTagName("input");
  // A loop that checks every input field in the current tab:
  for (i = 0; i < y.length; i++) {
    // If a field is empty...
    if (y[i].value == "") {
      // add an "invalid" class to the field:
      y[i].className += " invalid";
      // and set the current valid status to false:
      valid = false;
    }
  }
  // If the valid status is true, mark the step as finished and valid:
  if (valid) {
    document.getElementsByClassName("step")[currentTab].className += " finish";
  }
  return valid; // return the valid status
}erwise, display the correct tab:
  showTab(currentTab);
}
function validateForm() {
  // This function deals with validation of the form fields
  var x, y, i, valid = true;
  x = document.getElementsByClassName("tab");
  y = x[currentTab].getElementsByTagName("input");
  // A loop that checks every input field in the current tab:
  for (i = 0; i < y.length; i++) {
    // If a field is empty...
    if (y[i].value == "") {
      // add an "invalid" class to the field:
      y[i].className += " invalid";
      // and set the current valid status to false:
      valid = false;
    }
  }
  // If the valid status is true, mark the step as finished and valid:
  if (valid) {
    document.getElementsByClassName("step")[currentTab].className += " finish";
  }
  return valid; // return the valid status
}
У меня такой код, но если ВСЕ импуты не заполнены - не пропускает дальше, пока не заполнишь их.
мне нужно, чтобы не пропускало дальше лишь на последнем импуте формы(ввод телефона мобильного с id импута modalForm2-str1, и чтобы если остальные инпуты были пустыми (пользователь в них никакой инфы не внёс) - пропускало дальше.
0
Лучшие ответы (1)
IT_Exp
Эксперт
34794 / 4073 / 2104
Регистрация: 17.06.2006
Сообщений: 32,602
Блог
06.09.2019, 23:26
Ответы с готовыми решениями:

Выдать ошибку, если input не заполнен
Вот есть такой код: &lt;form action=&quot;thanks.php&quot; method=&quot;post&quot;&gt; &lt;div&gt;&lt;p&gt;&lt;h4&gt;Отец:&lt;/h4&gt;&lt;input type=&quot;checkbox&quot;&gt;Нет отца&lt;/p&gt;&lt;input...

Как понять, что INPUT не заполнен?
Как в php определить, что тот или иной input в форме не заполнен (оставлен пустым)? Нужно для того, чтобы вместо таких пустых строк...

Как сделать принтер по умолчанию, выбранный мной, а не выбранный автоматом, перенаправленный принтер?
или как запустить батник при подключении сеанса ? и в этом батнике написать аыбор принтера по умолчанию ?

12
1741 / 913 / 480
Регистрация: 05.12.2013
Сообщений: 3,074
06.09.2019, 23:32
Научитесь уже выделять код нормально
Миниатюры
Как сделать выбранный input валидным, если он не заполнен?  
0
1 / 1 / 1
Регистрация: 12.08.2019
Сообщений: 46
06.09.2019, 23:44  [ТС]
JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab
 
function showTab(n) {
// This function will display the specified tab of the form ...
var x = document.getElementsByClassName("tab");
x[n].style.display = "block";
// ... and fix the Previous/Next buttons:
if (n == 0) {
document.getElementById("prevBtn").style.display = "none";
} else {
document.getElementById("prevBtn").style.display = "inline";
}
if (n == (x.length - 1)) {
document.getElementById("nextBtn").innerHTML = "Рассчитать стоимость шкафа >>";
} else {
document.getElementById("nextBtn").innerHTML = "Следующий шаг";
}
// ... and run a function that displays the correct step indicator:
fixStepIndicator(n)
}
 
function nextPrev(n) {
// This function will figure out which tab to display
var x = document.getElementsByClassName("tab");
// Exit the function if any field in the current tab is invalid:
if (n == 1 && !validateForm()) return false;
// Hide the current tab:
x[currentTab].style.display = "none";
// Increase or decrease the current tab by 1:
currentTab = currentTab + n;
// if you have reached the end of the form... :
if (currentTab >= x.length) {
//...the form gets submitted:
document.getElementById("modal__step1").submit();
return false;
}
// Othvar currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab
 
function showTab(n) {
// This function will display the specified tab of the form ...
var x = document.getElementsByClassName("tab");
x[n].style.display = "block";
// ... and fix the Previous/Next buttons:
if (n == 0) {
document.getElementById("prevBtn").style.display = "none";
} else {
document.getElementById("prevBtn").style.display = "inline";
}
if (n == (x.length - 1)) {
document.getElementById("nextBtn").innerHTML = "Рассчитать стоимость шкафа >>";
} else {
document.getElementById("nextBtn").innerHTML = "Следующий шаг";
}
// ... and run a function that displays the correct step indicator:
fixStepIndicator(n)
}
 
function nextPrev(n) {
// This function will figure out which tab to display
var x = document.getElementsByClassName("tab");
// Exit the function if any field in the current tab is invalid:
if (n == 1 && !validateForm()) return false;
// Hide the current tab:
x[currentTab].style.display = "none";
// Increase or decrease the current tab by 1:
currentTab = currentTab + n;
// if you have reached the end of the form... :
if (currentTab >= x.length) {
//...the form gets submitted:
document.getElementById("modal__step1").submit();
return false;
}
// Otherwise, display the correct tab:
showTab(currentTab);
}
function validateForm() {
// This function deals with validation of the form fields
var x, y, i, valid = true;
x = document.getElementsByClassName("tab");
y = x[currentTab].getElementsByTagName("input");
// A loop that checks every input field in the current tab:
for (i = 0; i < y.length; i++) {
// If a field is empty...
if (y[i].value == "") {
// add an "invalid" class to the field:
y[i].className += " invalid";
// and set the current valid status to false:
valid = false;
}
}
// If the valid status is true, mark the step as finished and valid:
if (valid) {
document.getElementsByClassName("step")[currentTab].className += " finish";
}
return valid; // return the valid status
}erwise, display the correct tab:
showTab(currentTab);
}
function validateForm() {
// This function deals with validation of the form fields
var x, y, i, valid = true;
x = document.getElementsByClassName("tab");
y = x[currentTab].getElementsByTagName("input");
// A loop that checks every input field in the current tab:
for (i = 0; i < y.length; i++) {
// If a field is empty...
if (y[i].value == "") {
// add an "invalid" class to the field:
y[i].className += " invalid";
// and set the current valid status to false:
valid = false;
}
}
// If the valid status is true, mark the step as finished and valid:
if (valid) {
document.getElementsByClassName("step")[currentTab].className += " finish";
}
return valid; // return the valid status
}
лучше?!
0
1741 / 913 / 480
Регистрация: 05.12.2013
Сообщений: 3,074
06.09.2019, 23:50
Цитата Сообщение от кристина34 Посмотреть сообщение
лучше?!
Намного
Вот тут проверка всех элементов
JavaScript
1
2
3
4
5
6
7
8
9
for (i = 0; i < y.length; i++) {
    // If a field is empty...
   if (y[i].value == "") {
        // add an "invalid" class to the field:
        y[i].className += " invalid";
       // and set the current valid status to false:
      valid = false;
   }
}
Можно заменить как-нибудь так

JavaScript
1
2
3
4
5
6
if (y[y.length-1].value == "") {
        // add an "invalid" class to the field:
        y[y.length-1].className += " invalid";
       // and set the current valid status to false:
      valid = false;
  }
0
1 / 1 / 1
Регистрация: 12.08.2019
Сообщений: 46
07.09.2019, 14:31  [ТС]
не помогло
0
1741 / 913 / 480
Регистрация: 05.12.2013
Сообщений: 3,074
07.09.2019, 16:32
Цитата Сообщение от кристина34 Посмотреть сообщение
не помогло
Выложите html
0
1 / 1 / 1
Регистрация: 12.08.2019
Сообщений: 46
07.09.2019, 19:07  [ТС]
HTML5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<button id="shit"data-toggle="modal" data-target="#modal__step1" > MODAL SHIT</button>
    <form  action="mail.php" method="POST" id="modal__step1" class="modal fade" display="block"> 
        <div class="modal-dialog" id="closedialog"> 
            <div class="modal-content"> 
 
        <!--        <button class="btn btn-danger" data-dismiss="modal">Х</button > -->
 
<h1 class="form-name">
    Ответьте на 4 вопроса <br>
    <span class="small-white">
        и рассчитайте стоимость шкафа
    </span>                 
</h1>
<button class="close" data-dismiss="modal">x</button>
<!-- One "tab" for each step in the form: -->
<div class="tab">
    <div class="tab__txt-head">
    <p class="str2">
        <span class="txt-red">
            Вопрос 1.
        </span>
        Выберите тип шкафа:
    </p>
    </div>
    <div class="row1">
        <img class="modal-discount" src="img/modal/discount105.png" alt="discount">
        <form class="modal1-row123">
            <img class="modalimgbig" src="img/modal/form1-pic1.png" alt="png">
            <img src="img/modal/arrow-right.png" alt="arr">
            <input class="modalForm-step1" id="modalForm1-str1" type="radio" value="Корпусный" name="chooseClosetModal" checked>
            <label for="modalForm1-str1" class="btn-step1"></label>
    </div>
    <div class="row1">
            <img class="modalimgbig" src="img/modal/form1-pic2.png" alt="png">
            <img src="img/modal/arrow-right.png" alt="arr">
            <input class="modalForm-step1" id="modalForm1-str2" type="radio" value="Встраиваемый" name="chooseClosetModal">
            <label for="modalForm1-str2" class="btn-step11"></label>
    </div>
    <div class="row1">
            <img class="modalimgbig" src="img/modal/form1-pic3.png" alt="png">
            <img src="img/modal/arrow-right.png" alt="arr">
            <input class="modalForm-step1" id="modalForm1-str3" type="radio" value="Угловой" name="chooseClosetModal">
            <label for="modalForm1-str3" class="btn-step111"></label>
        </form>
    </div>
</div>
 
<div class="tab question2">
    <div class="tab__txt-head">
    <p class="str2-correction1">
        <span class="txt-red">
            Вопрос 2. <br>
        </span>
        Введите размеры шкафа:
    </p>
    </div>
    <div class="row1">
        <img class="modal-discount2" src="img/modal/discount105.png" alt="discount">
        <form class="modal2-row1">
            <input class="modalForm-step2" id="modalForm2-str1" placeholder="200 см на 120 см" name="closetSize" type="text" >
        </form>
    </div>
</div>
 
<div class="tab">
    <div class="tab__txt-head">
    <p class="str2-correction1">
        <span class="txt-red">
            Вопрос 3.
        </span>
        Выберите дизайн <br>
         дверей шкафа:
    </p>
    </div>
    <div class="row4">
        <img class="modal-discount3" src="img/modal/discount105.png" alt="discount">
        <form class="modal3-row123">
            <input class="modalForm-step3" id="modalForm3-str1" type="radio" value="Фотопечать" name="chooseDesign">
            <label for="modalForm3-str1" id="photoModal1"></label>
    </div>
    <div class="row4">
            <input class="modalForm-step3" id="modalForm3-str2" type="radio" value="Дсп" name="chooseDesign" checked>
            <label for="modalForm3-str2" id="photoModal2"></label>
            <input class="modalForm-step3" id="modalForm3-str22" type="radio" value="Лакомат/лакобель" name="chooseDesign">
            <label for="modalForm3-str22" id="photoModal3"></label>
    </div>
    <div class="row4" id="lowerBtn">
            <input class="modalForm-step3" id="modalForm3-str3" type="radio" value="С зеркалом" name="chooseDesign">
            <label for="modalForm3-str3" id="photoModal4"></label>
            <input class="modalForm-step3" id="modalForm3-str33" type="radio" value="Другое/Не знаю" name="chooseDesign">
            <label for="modalForm3-str33" id="photoModal5"></label>
        </form>
    </div>
</div>
 
<div class="tab fourTab">
    <div class="tab__txt-head">
    <p class="str2-correction1">
        <span class="txt-red">
            Вопрос 4. <br>
        </span>
        Выберите удобный способ <br>
         получения стоимости:
    </p>
    </div>
    <div class="row6">
        <img class="modal-discount4" src="img/modal/discount105.png" alt="discount">
        <form class="modal4-row123">
            <input class="modalForm-step4" id="modalForm4-str1" type="radio" value="СМС" name="chooseConnection" checked>
            <label for="modalForm4-str1" id="smsmodal"></label>
            <input class="modalForm-step4" id="modalForm4-str11" type="radio" value="WhatsApp" name="chooseConnection">
            <label for="modalForm4-str11" id="whatsappModal"></label>
    </div>
    <div class="row6">
            <input class="modalForm-step4" id="modalForm4-str2" type="radio" value="viber" name="chooseConnection">
            <label for="modalForm4-str2" id="viberModal"></label>
            <input class="modalForm-step4" id="modalForm4-str22" type="radio" value="telegram" name="chooseConnection">
            <label for="modalForm4-str22" id="telegramModal"></label>
    </div>
    <div class="rowLast">
            <p class="modal4-txt-black">
                Введите Ваш номер телефона:
            </p>
            <input id="phone5Modal" class="phoneModal" name="telephoneNumber" placeholder="+375(**)***-**-**">
            <p class="step4-under-btn-txt">
                Вы получите стоимость по выбранному способу связи <br>
                 в течение 15 минут
            </p>
        </form>
    </div>
</div>
<div style="overflow:auto;">
  <div class="buttons"style="float:right;">
    <img style="cursor:pointer;" id="prevBtn" onclick="nextPrev(-1)" src="img/modal/arrow-left-grey.png" alt="arr">
    <button type="button" id="nextBtn" onclick="nextPrev(1)">Следующий шаг</button>
  </div>
  <button id="last-btn"class="lastBtn"> Рассчитать стоимость шкафа >> </button>
</div>
<!-- Circles which indicates the steps of the form: -->
<div style="display: none">
  <span class="step"></span>
  <span class="step valid"></span>
  <span class="step"></span>
  <span class="step"></span>
</div>
</form>
                    </div>
                </div>
            </div>
        </div>
0
1741 / 913 / 480
Регистрация: 05.12.2013
Сообщений: 3,074
08.09.2019, 00:26
Сделал так

JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var x, y, i, valid = true;
                x = document.getElementsByClassName("tab");
                y = x[currentTab].getElementsByTagName("input");
 
                // A loop that checks every input field in the current tab:
                for (i = 0; i < y.length; i++) {
                        if(y[i].id !== "phone5Modal"){
                            continue;
                        }
                        // If a field is empty...
                    if (y[i].value == "") {
                        // add an "invalid" class to the field:
                        y[i].className += " invalid";
                        // and set the current valid status to false:
                        valid = false;
                    }
                }
Но нужно найти начальный код и там править, а то тут уже все перемешано
0
1 / 1 / 1
Регистрация: 12.08.2019
Сообщений: 46
08.09.2019, 12:30  [ТС]
всё равно не вышло ничего(
все шаги стопарятся
а вот оригинальный код:https://www.w3schools.com/howt... _steps.asp
0
1741 / 913 / 480
Регистрация: 05.12.2013
Сообщений: 3,074
08.09.2019, 18:28
Лучший ответ Сообщение было отмечено кристина34 как решение

Решение

К нужному инпуту задаем id

HTML5
1
 <p><input id="req" placeholder="Password..." oninput="this.className = ''"></p>
и в js

JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
 var currentTab = 0; // Current tab is set to be the first tab (0)
    showTab(currentTab); // Display the current tab
 
    function showTab(n) {
      // This function will display the specified tab of the form ...
      var x = document.getElementsByClassName("tab");
      x[n].style.display = "block";
      // ... and fix the Previous/Next buttons:
      if (n == 0) {
        document.getElementById("prevBtn").style.display = "none";
      } else {
        document.getElementById("prevBtn").style.display = "inline";
      }
      if (n == (x.length - 1)) {
        document.getElementById("nextBtn").innerHTML = "Submit";
      } else {
        document.getElementById("nextBtn").innerHTML = "Next";
      }
      // ... and run a function that displays the correct step indicator:
      fixStepIndicator(n)
    }
 
    function nextPrev(n) {
      // This function will figure out which tab to display
      var x = document.getElementsByClassName("tab");
      // Exit the function if any field in the current tab is invalid:
      if (n == 1 && !validateForm()) return false;
      // Hide the current tab:
      x[currentTab].style.display = "none";
      // Increase or decrease the current tab by 1:
      currentTab = currentTab + n;
      // if you have reached the end of the form... :
      if (currentTab >= x.length) {
        //...the form gets submitted:
        document.getElementById("regForm").submit();
        return false;
      }
      // Otherwise, display the correct tab:
      showTab(currentTab);
    }
 
    function validateForm() {
      // This function deals with validation of the form fields
      var x, y, i, valid = true;
      x = document.getElementsByClassName("tab");
      y = x[currentTab].getElementsByTagName("input");
      // A loop that checks every input field in the current tab:
      for (i = 0; i < y.length; i++) {
            if(y[i].id != "req"){
                continue;
            } 
        // If a field is empty...
        if (y[i].value == "") {
          // add an "invalid" class to the field:
          y[i].className += " invalid";
          // and set the current valid status to false:
          valid = false;
        }
      }
      // If the valid status is true, mark the step as finished and valid:
      if (valid) {
        document.getElementsByClassName("step")[currentTab].className += " finish";
      }
      return valid; // return the valid status
    }
 
    function fixStepIndicator(n) {
      // This function removes the "active" class of all steps...
      var i, x = document.getElementsByClassName("step");
      for (i = 0; i < x.length; i++) {
        x[i].className = x[i].className.replace(" active", "");
      }
      //... and adds the "active" class to the current step:
      x[n].className += " active";
    }
1
1 / 1 / 1
Регистрация: 12.08.2019
Сообщений: 46
10.09.2019, 23:29  [ТС]
красиво намалёвано, но, увы, не помогло(((!!!!
прописываю required - та же ерунда, не помогает
0
1741 / 913 / 480
Регистрация: 05.12.2013
Сообщений: 3,074
11.09.2019, 00:08
Цитата Сообщение от кристина34 Посмотреть сообщение
прописываю required
Нужно добавить id="req" тому input который нужно обязательно заполнить
0
1 / 1 / 1
Регистрация: 12.08.2019
Сообщений: 46
11.09.2019, 12:52  [ТС]
было прописано id="req"
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
BasicMan
Эксперт
29316 / 5623 / 2384
Регистрация: 17.02.2009
Сообщений: 30,364
Блог
11.09.2019, 12:52
Помогаю со студенческими работами здесь

Сделать код валидным
&lt;?{ ?&gt; &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;tab_group&quot;&gt; &lt;tr&gt; &lt;? } $i++; if ($i &lt;=...

Как запретить переход по компонентам по нажатию Tab, если MaskEdit заполнен некорректно?
Уважаемые форумчане, здравствуйте. На форме имеется MaskEdit для ввода времени. Как запретить переход по компонентам по нажатию Tab, если...

Можно ли назначать значения Input.Axis? Если нет, то как можно сделать контроллер для андроид, используя две кнопки?
Можно ли назначать значения Input.Axis? Если нет, то как можно сделать контроллер для андроид, используя две кнопки? Можно ли создать axis...

Запомнить выбранный в input файл
Добрый день, подскажите плиииз. Пишу серверную часть для сайта, где пользователь может залить свой файл на сервер через ajax-запрос. ...

Вставить текст в выбранный input
Добрый день. На странице есть 5 input с одиноковым id: &lt;input type=&quot;text&quot; size=&quot;20&quot; id=&quot;name&quot;&gt; &lt;input type=&quot;text&quot;...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
13
Ответ Создать тему
Новые блоги и статьи
Настройки VS Code
Loafer 13.04.2026
{ "cmake. configureOnOpen": false, "diffEditor. ignoreTrimWhitespace": true, "editor. guides. bracketPairs": "active", "extensions. ignoreRecommendations": true, . . .
Оптимизация кода на разграничение прав доступа к элементам формы
Maks 13.04.2026
Алгоритм из решения ниже реализован на нетиповом документе, разработанного в конфигурации КА2. Задачи, как таковой, поставлено не было, проделанное ниже исключительно моя инициатива. Было так:. . .
Контроль заполнения и очистка дат в зависимости от значения перечислений
Maks 12.04.2026
Алгоритм из решения ниже реализован на примере нетипового документа "ПланированиеПерсонала", разработанного в конфигурации КА2. Задача: реализовать контроль корректности заполнения дат назначения. . .
Архитектура слоя интернета для сервера-слоя.
Hrethgir 11.04.2026
В продолжение https:/ / www. cyberforum. ru/ blogs/ 223907/ 10860. html Знаешь что я подумал? Раз мы все источники пишем в голове ветки, то ничего не мешает добавить в голову такой источник, который сам. . .
Подстановка значения реквизита справочника в табличную часть документа
Maks 10.04.2026
Алгоритм из решения ниже реализован на примере нетипового документа "ПланированиеПерсонала", разработанного в конфигурации КА2. Задача: при выборе сотрудника (справочник Сотрудники) в ТЧ документа. . .
Очистка реквизитов документа при копировании
Maks 09.04.2026
Алгоритм из решения ниже применим как для типовых, так и для нетиповых документов на самых различных конфигурациях. Задача: при копировании документа очищать определенные реквизиты и табличную. . .
модель ЗдравоСохранения 8. Подготовка к разному выполнению заданий
anaschu 08.04.2026
https:/ / github. com/ shumilovas/ med2. git main ветка * содержимое блока дэлэй из старой модели теперь внутри зайца новой модели 8ATzM_2aurI
Блокировка документа от изменений, если он открыт у другого пользователя
Maks 08.04.2026
Алгоритм из решения ниже реализован на примере нетипового документа, разработанного в конфигурации КА2. Задача: запретить редактирование документа, если он открыт у другого пользователя. / / . . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru