Today, a friend from QQ group ask me a question, how to add "<br>" and " " into textbox auto,
I give him the sample code:
function CheckKeyPress(textbox)
{
var code
code=event.KeyCode
switch(code)
{
case 13:
textbox.value=textbox.value + "<br/>"
break
case 20:
textbox.value=textbox.value + " "
break
}
}
浙公网安备 33010602011771号