app-test-verify-form.js 422 B

123456789101112131415161718
  1. class TestVerifyForm {
  2. constructor() {
  3. this.$invoiceAmountField = $("#invoice-amount");
  4. this.$newTestProjectField = $("#new-test-project-id");
  5. this.$newTestProjectField.on("change", event => {
  6. const $option = this.$newTestProjectField.find("option:selected");
  7. const customerFee = $option.attr("data-customer-fee");
  8. this.$invoiceAmountField.val(customerFee);
  9. });
  10. }
  11. }
  12. $(() => new TestVerifyForm());