Программисты Html
Anonymous
Safari IOS Поля ввода не работают при постуке [закрыто]
Сообщение
Anonymous » 20 июл 2025, 00:49
Эта форма работает в всех браузерах , но не в сафари. Чтобы ввести текст в одном из полей ввода, пользователь нажимает или наживет в требуемом поле и начнет печатать. На мобильном устройстве на экране клавиатура будет позволить пользователю вводить текст.
Код: Выделить всё
LAF 2025
#car {
transform-box: fill-box;
transform-origin: center center;
}
Gerne melde ich mich für die Lehrabschlussfeier vom LG21 an:
Ich bin leider verhindert:
Notizen
Senden
< /code>
document.querySelectorAll('input[name="anmeldung"]').forEach(radio => {
radio.addEventListener('change', () => {
const nameFields = document.getElementById('names');
const nameField = document.getElementById('name');
if (document.getElementById('abmeldung').checked) {
nameFields.classList.add('hidden');
nameField.classList.remove('hidden');
} else {
nameFields.classList.remove('hidden');
nameField.classList.add('hidden');
}
});
});
const inputs = document.querySelectorAll('#names .name');
inputs.forEach((input, index) => {
input.addEventListener('input', () => {
const value = input.value.trim();
if (value !== '' && index + 1 < inputs.length) {
inputs[index + 1].style.display = 'block';
}
});
});
https://anmeldung.sbw.media/laf/
Подробнее здесь:
https://stackoverflow.com/questions/797 ... hen-tapped
1752961796
Anonymous
Эта форма работает в всех браузерах , но не в сафари. Чтобы ввести текст в одном из полей ввода, пользователь нажимает или наживет в требуемом поле и начнет печатать. На мобильном устройстве на экране клавиатура будет позволить пользователю вводить текст.[code] LAF 2025 #car { transform-box: fill-box; transform-origin: center center; } Gerne melde ich mich für die Lehrabschlussfeier vom LG21 an: Ich bin leider verhindert: Notizen Senden < /code> document.querySelectorAll('input[name="anmeldung"]').forEach(radio => { radio.addEventListener('change', () => { const nameFields = document.getElementById('names'); const nameField = document.getElementById('name'); if (document.getElementById('abmeldung').checked) { nameFields.classList.add('hidden'); nameField.classList.remove('hidden'); } else { nameFields.classList.remove('hidden'); nameField.classList.add('hidden'); } }); }); const inputs = document.querySelectorAll('#names .name'); inputs.forEach((input, index) => { input.addEventListener('input', () => { const value = input.value.trim(); if (value !== '' && index + 1 < inputs.length) { inputs[index + 1].style.display = 'block'; } }); }); [/code] https://anmeldung.sbw.media/laf/ Подробнее здесь: [url]https://stackoverflow.com/questions/79706422/safari-ios-input-fields-not-working-when-tapped[/url]