<input type="text" name="cartgorod" id="clear_input" placeholder="Владивосток">
//при выборе 22222, показываем блок
$(document).ready(function() {
$(".sdecb").change(function() {
if ($('#radio2').prop("checked")) {
$('#clear_input').val(''); // Добавил эту строку
$('#cartadres').val(''); // one more
$('.sdec').show(100);
} else {
$('.sdec').hide(100);
}
});
});
target.closest('a')
const tabstov = document.querySelectorAll(".tabstovnl");
const blocks = document.querySelectorAll(".tabstovb");
const tabClickHandler = ({ target }) => {
const targetTab = target.closest('a');
const block = document.querySelector(`${targetTab.getAttribute('href')}`);
const isTargetNotActive = !targetTab.classList.contains('tabstovnl--active');
if (isTargetNotActive) {
tabstov.forEach(tab => tab.classList.remove("tabstovnl--active"));
blocks.forEach(block => block.classList.remove("tabstovb--active"));
}
targetTab.classList.toggle("tabstovnl--active", isTargetNotActive);
block.classList.toggle("tabstovb--active", isTargetNotActive);
}
tabstov.forEach(tab => tab.addEventListener("click", tabClickHandler));
const crop = $('.crop-image').croppie({
viewport: { width: 100, height: 100, type: 'circle' },
boundary: { width: '100%', height: 300 },
update(){
drawCroppedImage();
}
});
function drawCroppedImage(){
crop.croppie('result', {
type: 'rawcanvas',
size: {
width: 100,
height: 100
}
}).then(html => {
$('#cropped-image').html(html);
});
}
document.addEventListener('DOMContentLoaded', e => {
for (let checkbox of document.querySelectorAll('input[type=checkbox]')) {
checkbox.value = checkbox.checked ? 1 : 0;
checkbox.addEventListener('change', e => {
e.target.value = e.target.checked ? 1 : 0;
});
}
});
cell.Offset(0, 1).Font.Color = RGB(255, 0, 0)
cell.Offset(0, 1).Font.Color = RGB(0, 255, 0)
If cell.Value <> "" Then
<input type='reset' />
и тег <form>