Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Slider: Demo dynamic creation #7549

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions demos/slider/index.php
Expand Up @@ -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">
Expand Down Expand Up @@ -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' ); ?>
Expand Down