Permalink
Browse files

Slider: Demo dynamic creation

Closes gh-7549
Fixes gh-7545
  • Loading branch information...
gabrielschulhof committed Jul 6, 2014
1 parent b1a3ca6 commit 9a060c1b413357ad4cb70177b034bd21418ab31b
Showing with 16 additions and 0 deletions.
  1. +16 −0 demos/slider/index.php
View
@@ -20,6 +20,14 @@
margin-left: 15px;
}
</style>
<script id="dynamic-slider">
$( document ).on( "pagecreate", function() {
$( "<input type='number' data-type='range' min='0' max='100' step='1' value='17'>" )
.appendTo( "#dynamic-slider-form" )
.slider()
.textinput()
});
</script>
</head>
<body>
<div data-role="page" class="jqm-demos" data-quicklinks="true">
@@ -134,6 +142,14 @@
</form>
</div><!-- /demo-html -->
<h2>Dynamically injected</h2>
<p>The slider below has been created at runtime.</p>
<div data-demo-html="true" data-demo-js="#dynamic-slider">
<form id="dynamic-slider-form">
</form>
</div>
</div><!-- /content -->
<?php include( '../jqm-navmenu.php' ); ?>

0 comments on commit 9a060c1

Please sign in to comment.