File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
<added >1.0</added >
7
7
</signature >
8
8
<example >
9
- <desc >Example of the activePage property</desc >
10
- <css ><![CDATA[
9
+ <desc >Example of the activePage property</desc >
10
+ <css ><![CDATA[
11
11
#myResult {
12
12
border: 1px solid;
13
13
border-color: #108040;
14
14
padding: 10px;
15
15
}
16
16
]]> </css >
17
- <html ><![CDATA[ <div data-role="header">
17
+ <html ><![CDATA[ <div data-role="header">
18
18
<h1>Page 1</h1>
19
19
</div>
20
20
<div data-role="content">
33
33
<input type="button" value="Which Page is this?" class="myButton" data-inline="true"/> <br>
34
34
<div class="myResult">The result will be displayed here</div>
35
35
</div>]]> </html >
36
- <code ><![CDATA[
36
+ <code ><![CDATA[
37
37
$(function() {
38
38
$( ".myButton" ).on( "click", function() {
39
39
var whichPageId = $.mobile.activePage.attr( "id" );
40
40
$( ".myResult" ).html( "This is " + whichPageId );
41
41
});
42
42
});
43
43
]]> </code >
44
- </example >
44
+ </example >
45
45
<category slug =" properties" />
46
46
</entry >
You can’t perform that action at this time.
0 commit comments