+ Reply to Thread
Results 1 to 2 of 2

Thread: Validate textbox input

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    45

    Validate textbox input

    I have a javascript function that validate text input , but how can i valide the entered text from input tag ?

  2. #2
    Junior Member
    Join Date
    Jun 2012
    Posts
    41
    1) Assume you got 2 inputs :
    Code:
    <input name="SNo" type="text" id="SNo" onkeyup="Validate(this.value)" value=""/> <span id="validateNumbers"></span>
    <input name="Names" type="text" id="Names" onkeyup="Validate(this.value)" value=""/><span id="validateNames"></span>
    2) Then add a javascript function named :
    Code:
    function Validate(value){
    .....
    .....
    .....
    }

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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