javascript
javascript
hello, I´m new to jquerymobile, I call the follow page with this
$.mobile.changePage("contenido/contenido3.html", "pop",false,true); I do not understand the why the alert message is not displayed. Thanks.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css" />
<link rel="stylesheet" href="docs/_assets/css/jqm-docs.css" />
<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header" >
<h1>Page Title</h1>
</div><!-- /header -->
<div data-role="content">
<a href="#" data-role="button">Link button</a>
<input type="button" id="btn1" value="Input type=button" />
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page -->
<script>
$('#btn1').'click'(function() {
alert('boton2"');
});
</script>
</body>
</html>