Jquery Mobile popup triggering by itself
HTML
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
</head>
<body>
<!-- Main page -->
<div data-role="page" id="main">
<div data-role="header" data-theme="b" data-position="fixed">
<a href="#settings">Settings</a>
<h1>Deeside</h1>
</div>
<div data-role="content" data-theme="d">
<div class="home">
<a data-role="button" href="#choicePopup" data-rel="popup" data-position-to="window" data-transition="slideup">Open popup with a link</a>
<a id="btnChoicePopup" data-role="button" href="#" data-rel="popup">Open popup programmatically</a>
</div>
</div>
<div data-role="popup" id="choicePopup" data-overlay-theme="b" data-theme="c" data-dismissible="false" class="ui-corner-all">
<div data-role="header" data-theme="a" class="ui-corner-top">
<h1></h1>
</div>
<div data-role="content" data-theme="d" class="ui-corner-bottom ui-content">
<h3 class="ui-title">Your decision has been made:</h3>
<a id="btnThanks" href="#" data-role="button" data-inline="true" data-rel="back" data-theme="c">Thanks</a>
<a id="btnAgain" href="#" data-role="button" data-inline="true" data-rel="back" data-transition="flow" data-theme="b">Again!</a>
</div>
</div>
</div>
<!-- Results Page -->
<div data-role="page" id="results">
<div data-role="header" data-theme="b" data-position="fixed"> <a href="#" data-rel="back" data-icon="arrow-l">Back</a>
<h1 class="results-header"></h1>
</div>
...