jquery 숫자만 입력받기
<input type="text" class="cost">
<script
src="https://code.jquery.com/jquery-3.7.0.js"
integrity="sha256-JlqSTELeR4TLqP0OG9dxM7yDPqX1ox/HfgiSLBj8+kM="
crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
$(".cost").keyup(function(){$(this).val( $(this).val().replace(/[^0-9]/g,"") );} );
});
</script>