I would like to write a java script file that searches for closeText
value and console.log
it but i am a confused how to do this my approach is based on this documentation but i can't figure out how to do this , i all get is an error ReferenceError: $ is not defined
html.index file
<!DOCTYPE html>
<html>
<script src="https://code.jquery.com/jquery-1.4.2.js"></script>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<iframe id=target ></iframe>
<script src="script.js"></script>
</body>
</html>
and the script.js
var target = document.getElementById('target');
var closeText = $( ".selector" ).dialog( "option", "closeText" );
console.log(closeText);