以下のコードは、jQueryMobile でボタン アクションを実装しようとしていますが、うまくいきません。どこが間違っているか教えてください。すべてHTMLファイルに書かれています。ここでコードを提供する際に問題に直面しています。これが私が試みていることです。標準の HTML 形式で、script
タグの間に以下のコードを記述しています
$('#theButton').click(function() {
alert('The Button has been clicked,');
});
そしてbody
タグで---
<div data-role="page">
<div data-role="content">
<input type="button" id="theButton" name="theButton" value="The Button">
</div>
しかし、アクションは呼び出されていません。