JQuery Mobile blocks Javascript
Hallo,
I tried the following scenario:
A button should have the value "Not Clicked". When i click on it, it should show "Clicked".
Now my problem: everything works fine when i quote jquery mobile out.
When i turn jquery mobile on, the button value doesn't change.
My code:
- <html>
- <head>
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css">
- <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
- <script src="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script>
- <script type="text/javascript">
- function changeText() {
- if (document.getElementById("button1").value == "Not Clicked") document.getElementById("button1").value = "Clicked";
- }
- </script>
- </head>
- <body>
- <input type="button" value="Not Clicked" id="button1" onclick="changeText()" />
- </body>
- </html>
Can anyone help me?
Thanks :)