I have a problem. I don't want to leave blanks in input as shown below:
Display from Input element:
Should be -> |Mickey|
Comes up -> |Mickey |
Which leaves some trailing blank.
Sample code below:
<html>
<head>
<script type="text/javascript">
function maxLen()
{
var txt="Size=" + document.getElementById("name").size;
var txt=txt + " and Max length=" + document.getElementById("name").maxLength;
alert(txt);
}
</script>
</head>
<body>
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Bookmarks