jQuery(document).ready(function($) {
// When the select field changes
$('#pa_compartments').on('change', function() {
// Get the selected value
var selectedValue = $(this).val();
// Populate the input boxes with the class 'pewc-number-field'
$('.pewc-number-field').val(selectedValue);
});
});