$('.mybtn').on('click',_x000D_
function(){_x000D_
$('#myinput').attr('value', '');_x000D_
}_x000D_
);
_x000D_
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>_x000D_
_x000D_
<button class="mybtn">CLEAR</button>_x000D_
<input type="text" id="myinput" name="myinput" value="?????????">
_x000D_