JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=2.0; user-scalable=0;">
<!--不是jsfiddle不能用js,https引用的外部資源(js)的網址也都要用https-->
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.4/jquery.mobile.min.css">
<!--把瀏覽器開發者工具(F12)按出來可以看到錯誤訊息,優先從這邊嘗試排除-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.js"></script>
</head>
<body>
<input id="btnsubmit" type="submit" value="test" disabled />
<script>
function loadfn () {
//既然都要用jquery mobile了,就統一用這個框架的方法操作物件吧
// 官網有文件可看 https://demos.jquerymobile.com/1.2.0/docs/buttons/buttons-methods.html
$('[type="submit"]').button('enable');
}
</script>
<iframe width='100%' height='300px' src='//jp.wikipedia.org/' onload='loadfn()'></iframe>
</body>
</html>