Last updated 1 year ago
C:\xampp82\htdocs\testnet\resources\js\buton-change-menu.js
document.getElementById("changeMenu").addEventListener("click", function () { let value = document.getElementById("selectMenu").value; window.location.replace(`/menu/menu/show/${value}`); });
C:\xampp82\htdocs\testnet\vite.config.js
import { defineConfig } from "vite"; import laravel from "laravel-vite-plugin"; export default defineConfig({ plugins: [ laravel({ input: ["resources/sass/app.scss", "resources/js/app.js", "resources/js/app-edit.js","resources/js/buton-change-menu.js"], refresh: true, }), ], });