const formData1 = new FormData( document.getElementById('form1') );
const formData2 = new FormData( document.getElementById('form2') );
for(const [key, value] of formData2.entries()) {
formData1.append(key, value)
}
return formData1;
<div class="wrapper">
<h1 class="title">Заголовок</h1>
</div>
.wrapper {
position: relative;
z-index: 0;
display: flex;
justify-content: center;
}
.wrapper:after {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 1px;
width: 100%;
background-color: red;
z-index: -1;
margin: auto;
}
.title {
background-color: #fff;
padding: 0 10px;
}
localStorage.getItem('value')
const inputs = document.querySelectorAll('.input');
if( inputs.length ) {
const inputSelection = input => {
input.type = 'text';
input.setSelectionRange(0,0);
input.type = 'number';
input.blur();
}
inputs.forEach(input => {
input.addEventListener('input', event => {
if( input.value.length == input.maxLength ) inputSelection(input);
if( input.value.length > input.maxLength ) {
input.value = input.value.slice(0, input.maxLength);
inputSelection(input);
}
});
});
}
<div class="flex-wrapper" />
<img src="левое.jpg">
<p>lorem100</p>
<img src="правое.jpg" />
</div>
.flex-wrapper {
display:flex;
}
.flex-wrapper img {
width: 200px;
flex-shrink: 0;
}
.flex-wrapper p {
flex-grow: 1;
}