Why I want to show an javascript form that I save in my github at my site, But I don't know why the javascript can't be work nomally, the browser skip it and jump to 'noscript 'directly,But when I remove the 'noscript' tag, it can't be work anymore.
This is my github form link: https://raw.githubusercontent.com/Rduanchen/hserpsystem/main/WEB_2/sub_index_web/Serch_general.html
The form should work like this
but this is my result
this is my code
<!DOCTYPE html>
<html>
<head>
<title>js test</title>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
</head>
<body>
<div id="index_block"></div>
<button onclick="hello()"><a>get data</datagrid></a></button>
</body>
<script>
function hello(){
$.ajax({
url:'https://raw.githubusercontent.com/Rduanchen/hserpsystem/main/WEB_2/sub_index_web/Serch_general.html',
method:'get',
dataType:'Text',
success:function(data){
console.log(typeof(data));
$(document).ready(function(){
document.getElementById('index_block').innerHTML=data;
})
},
});
};
</script>
</html>
Thank you very much.