I would like to integrate jQuery in my electron project, I need it because I need this code to run
$('#link').on('submit', function (e) {
e.preventDefault();
let $form = $(this),
$select = $form.find('select');
links = $select.val();
if (links.length > 0) {
for (i in links) {
link = links[i];
window.open(link);
}
}
});
I tried this code to fix it
<script>if (typeof module === 'object') { window.module = module; module = undefined; }</script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/vendor.js"></script>
<script>if (window.module) module = window.module;</script>
which is the one that everyone uses, but it doesn't work, I hope you can help me.