1 | <!DOCTYPE html> |
---|
2 | <html lang="en"> |
---|
3 | <head> |
---|
4 | <title>Input Mask - Dropdown</title> |
---|
5 | <meta charset="utf-8" /> |
---|
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
---|
7 | <meta name="description" content="Dropdown sample." /> |
---|
8 | <meta name="keywords" content="" /> |
---|
9 | <meta name="author" content="ComponentOne" /> |
---|
10 | |
---|
11 | <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" /> |
---|
12 | |
---|
13 | <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script> |
---|
14 | <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script> |
---|
15 | <link href="../../themes/wijmo/jquery.wijmo.wijinput.css" rel="stylesheet" type="text/css" /> |
---|
16 | <script src="../../external/globalize.min.js" type="text/javascript"></script> |
---|
17 | <script src="../../external/jquery.mousewheel.min.js" type="text/javascript"></script> |
---|
18 | <script src="../../external/jquery.wijmo-open.all.2.2.2.min.js" type="text/javascript"></script> |
---|
19 | <script src="../../wijmo/jquery.plugin.wijtextselection.js" type="text/javascript"></script> |
---|
20 | <script src="../../wijmo/jquery.wijmo.wijdatasource.js" type="text/javascript"></script> |
---|
21 | <script src="../../wijmo/jquery.wijmo.wijinputcore.js" type="text/javascript"></script> |
---|
22 | <script src="../../wijmo/jquery.wijmo.wijinputmask.js" type="text/javascript"></script> |
---|
23 | <script type="text/javascript"> |
---|
24 | $(function () { |
---|
25 | $("#textbox1").wijinputmask( |
---|
26 | { |
---|
27 | mask: '000-0000', |
---|
28 | comboItems: ['100-1000', '200-2000', '123-2909'], |
---|
29 | showTrigger: true |
---|
30 | }); |
---|
31 | }); |
---|
32 | </script> |
---|
33 | </head> |
---|
34 | <body class="demo-single"> |
---|
35 | <div class="container"> |
---|
36 | <div class="header"> |
---|
37 | <h2> |
---|
38 | Dropdown</h2> |
---|
39 | </div> |
---|
40 | <div class="main demo"> |
---|
41 | <!-- Begin demo markup --> |
---|
42 | |
---|
43 | <input type="text" id="textbox1" /> |
---|
44 | <h6> |
---|
45 | Mask</h6> |
---|
46 | <p> |
---|
47 | 000-0000</p> |
---|
48 | <!-- End demo markup --> |
---|
49 | <div class="demo-options"> |
---|
50 | <!-- Begin options markup --> |
---|
51 | <!-- End options markup --> |
---|
52 | </div> |
---|
53 | </div> |
---|
54 | <div class="footer demo-description"> |
---|
55 | <p> |
---|
56 | This sample shows how predefined input values can be specified using the <b>comboItems</b> option.</p> |
---|
57 | </div> |
---|
58 | </div> |
---|
59 | </body> |
---|
60 | </html> |
---|