function func_1(){
let input = document.querySelector('input').value;
let i = document.querySelector('.u-1');
let button = document.querySelector('button');
button.onclick = () => {
i.style.width = input;
}
}
func_1();
<input type="text"><button>Click</button>
<p class="u-1">11</p>