I have put some code in a frame which works faultlessly in a test environment (opening file from computer in Safari).
Once it’s in the frame it just will not work on my Wix site.
The HTML element appears but the JQ will not work.
Thanks for the help in advance, Luke.
This is the code:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<input id="name" type="text">
<input id="check" type="button" value="Check">
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function() {
var names = ['vadim', 'thomas', 'tanya', 'timur', 'eve', 'kate', 'karen',
'peter'];
$('#check').click(function() {
var name = $('#name').val();
if (jQuery.inArray(name, names) != '-1') {
alert(name + ' is in the array!');
} else {
alert(name + ' is NOT in the array...');
}
});
});
</script>
</body>
</html>