JQM 1.2.0 and popup problem
I can't get the popup working.
I'm using Jquery 1.8.2 and JQM 1.2.0.
When I add an popup to my project I don't see the popup when pressing the button.
The popup appears only when I click a button to go to another page. The page disappears, the popup shows for half a second and the the new page.
Below a simple test for the popup. Clicking the button doesn't show the popup.
What to do?
- <!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="stylesheet" href="jquery.mobile.css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.mobile.js"></script>
</head>
<body>
<div data-role="page" data-theme="a" id="home">
<a href="#popuptest" data-rel="popup">
<input type='button' value='Test popup'>
</a>
</div>
<div data-role="popup" id="popuptest">
<p>De stand is:<p>
</div>