Bug Tracker

Ticket #3917: test-3917.html

File test-3917.html, 615 bytes (added by dmethvin, 13 years ago)

maxLength property vs. attribute

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3<head>
4  <script src="jquery-1.3.js"></script>
5 
6  <script>
7  $(document).ready(function(){
8 
9$("input").each(function() {
10  $(this).after(
11        " maxlength: "+this.maxLength+" "+$(this).attr("maxLength")+" "+this.getAttribute("maxLength")
12  );
13});
14
15  });
16  </script>
17  <style>
18
19  </style>
20</head>
21<body>
22
23<input type="text" name="text1">
24<br />
25<input type="text" name="text2" maxLength="34">
26
27</body>
28</html>