If you include the jQuery library on your pages, you can use the following code for:
"When the document is fully loaded, take the first input element with type =" text "and apply its height and width to all input elements with type =" password ".
I tested this only on IE7 and it worked like a charm.
<script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("input[type='password']").height($("input[type='text']").height()); $("input[type='password']").width($("input[type='text']").width()); }); </script>
This is a generic answer (taking the first element that matches the input [type = 'text']). You can get a link to a specific element that you want to map, and then get a link to one or more fields with another jQuery selector. Check out the documentation on getting elements by id or group of elements using a common css class or xpath type expression:
http://docs.jquery.com/Selectors
Rich Mar 27 '09 at 15:26 2009-03-27 15:26
source share