Asking Question

Results 1 to 2 of 2

Thread: Asking Question

  1. #1
    Christine Guest

    Default Asking Question

    how the script look like , if there is a text box(txt1) which let the user to fill in and another line call " number of character you had type in!!!"and a text box(txt2) beside it which detect the (txt1) how many character had inserted!

  2. #2
    Join Date
    Dec 1969

    Default RE: Asking Question

    Somthing like this (untested):<BR><BR>&#060;script language="javascript"&#062;<BR>function CheckLength(fldName) {<BR>txt2.value=fldName.value.length;<BR>}<BR>&#06 0;/script&#062;<BR>&#060;input type="Text" name="txt1" onkeydown="CheckLength(this.form.txt1);" onkeyup="CheckLength(this.form.txt1);"&#062;<BR>&# 060;input type="text" name="txt2" onfocus="this.blur();"&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts