$(document).ready(function() {
$('#Phone-3').on('input', function(evt) {
var $this = $(this);
var cleanedValue = $this.val().replace(/\D/g, '');
$this.val(cleanedValue);
});
$('#Phone-3').on('keypress', function(evt) {
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode < 48 || charCode > 57) {
evt.preventDefault();
}
});
$('#Bin-Amount').change(function() {
$(this).val() === '5+' ? ($('#Five-Plus-Field').val('5').show().prop('required', true), $('.totalbinlabel').show()) : ($('#Five-Plus-Field').val($(this).val()).hide().prop('required', false), $('.totalbinlabel').hide());
});
});