JQuery初心者です。JQueryを使用してタイマーを作成しようと思ったのですが、うまいこといかずとりあえず簡単なコードを書いてalertが反応するか確認したんですが、それも実行されず、、、 どこがいけないのでしょうか???
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>jquery使用タイマー</title> </head> <body> <div id="box"> <p id="timer">03:00</p> <button id="start">START</button> <button id="tomeru">STOP</button> <!--stopの関数はstopじゃない!!--> <button id="reset">RESET</button> </div> <style type="text/css"> </style> <script src="https://code.jquery.com/jquery-3.1.1.slim.js" integrity="sha256-5i/mQ300M779N2OVDrl16lbohwXNUdzL/R2aVUXyXWA=" crossorigin="anonymous"> $('#start').click(function(){ alert('bakaa'); }); </script>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。