Beginner trying to get first command to work
trying to get this simple .html command to change the text in the button from "it's a button" to "my button" like this guy does in this tutorial
https://youtu.be/G-POtu9J-m4?t=24s except it's not working for me. I have jquery-1.11.3 in the same folder that my index.html is in. I don't know what could be wrong.
- <!doctype html>
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
- <!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
- <!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title></title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1">
-
- <script src="jquery-1.11.3.js"></script>
-
- </head>
- <body>
- <button id="thisButton">it's a button</button>
- <script>
- $(function(){
- $('thisButton').html('my button');
- });
- </script>
-
- </body>
- </html>