1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/html4/loose.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | |
---|
6 | <!-- |
---|
7 | <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> |
---|
8 | --> |
---|
9 | <script src="jquery-1.3.2.js" type="text/javascript"></script> |
---|
10 | <script type="text/javascript"> |
---|
11 | /*globals $*/ |
---|
12 | $(document).ready(function() { |
---|
13 | var str = ''; |
---|
14 | var multiple = $("#inputtest").attr("multiple"); |
---|
15 | var mustmatch =$("#inputtest").attr("mustmatch"); |
---|
16 | $("#output").val("multiple: " + multiple + ", type: " + (typeof multiple) + |
---|
17 | "; "+ |
---|
18 | "mustmatch: " + mustmatch+ ", type: " + (typeof mustmatch)).show(); |
---|
19 | |
---|
20 | }); |
---|
21 | </script> |
---|
22 | |
---|
23 | <style> |
---|
24 | p |
---|
25 | { |
---|
26 | color: blue; |
---|
27 | margin: 8px; |
---|
28 | } |
---|
29 | </style> |
---|
30 | </head> |
---|
31 | <body> |
---|
32 | <textarea id="output" cols="200" rows="100"></textarea> |
---|
33 | <p> |
---|
34 | Test Paragraph.</p> |
---|
35 | <label for="inputtest"> |
---|
36 | Input with custom attributes</label> |
---|
37 | <input id="inputtest" type="text" value="value1" multiple="True" mustmatch="False" /> |
---|
38 | </body> |
---|
39 | </html> |
---|