PDA

View Full Version : TextBox Mask


jpfo
09-12-2001, 08:50 AM
Hi,
Can anyone tell me how to create a mask in a textbox? Like 000.000.000.000

I think that i only can do this with JavaScript... can anyone tell me how?

Tks in advance.
JP

Dr. Web
09-12-2001, 12:33 PM
in a textbox or in the url?

in a textbox is pretty simple:

<html>
<head>
<title>Untitled</title>
<script language=javascript>
function change(){
document.form1.text1.value="000.000.000.000";
}
</script>
</head>
<body>
<form name=form1>
<br><br>
<input type=text name=text1 value="watch me...">
<br><br>
<input type=button onClick="change()" value=Change>


</body>
</html>