How to use event trigger when change "State/Province " drop-down on the checkout page?
I'm trying to page reload when user change Region from "State/Province" dropdown in the checkout page.
First, I've created js file and put code and this js add in frontend using article but it's not worked
also, I have put static JS file in XML file but there give a JQuery not defined error. see below js file code
define([
"jquery",
],
function($) {
"use strict";
$('document').on('change', 'select[name="region_id"]', function(){
alert("hi");
});
return;
});