vthoi
02-09-2005, 03:15 AM
Hi
Can you please help me with this problem ?
When user enters input data less than the max length, how can I display leading zero on the screen ?
Thanks very much.
<html>
<head>
</head>
<body>
// --></script><script type="text/javascript">
function fold(o){ o.value=o.value.toUpperCase(); }
</script>
<form name="form1">
<table border="0" cellpadding="0" cellspacing="0" width="1000"
bordercolor="#000080">
<tr>
<td width="25%"><font size="2"><strong>Search Key</strong></font></td>
<td width="10%"><font size="3"><input type="text" size="14" maxlength="11" name="search_key"
onkeydown="fold(this)"
onblur="fold(this)"
onclick="fold(this)"></font></td>
</tr>
</form>
</body>
</html>
Can you please help me with this problem ?
When user enters input data less than the max length, how can I display leading zero on the screen ?
Thanks very much.
<html>
<head>
</head>
<body>
// --></script><script type="text/javascript">
function fold(o){ o.value=o.value.toUpperCase(); }
</script>
<form name="form1">
<table border="0" cellpadding="0" cellspacing="0" width="1000"
bordercolor="#000080">
<tr>
<td width="25%"><font size="2"><strong>Search Key</strong></font></td>
<td width="10%"><font size="3"><input type="text" size="14" maxlength="11" name="search_key"
onkeydown="fold(this)"
onblur="fold(this)"
onclick="fold(this)"></font></td>
</tr>
</form>
</body>
</html>