Results 1 to 2 of 2

Thread: In Java Script how to Check Null Value?

  1. #1
    CruzPowell is offline Senior Member
    Join Date
    Dec 2009
    Posts
    224
    Rep Power
    3

    Default In Java Script how to Check Null Value?

    I want to check null value. But I don't know anything about it can anyone help me to solve this.

  2. #2
    FosterWood is offline Senior Member
    Join Date
    Dec 2009
    Posts
    215
    Rep Power
    3

    Default

    Following code used for checking entry in the field. Rather than telling you logic I had given code. Here either field will return zero length string, or null value if field is kept empty. Check code given below :

    Code:
    function IsEmpty(aTextField) {
       if ((aTextField.value.length==0) ||
       (aTextField.value==null)) {
          return true;	
       }
       else { return false; }
    }

Similar Threads

  1. Java script issue in YouTube
    By CollinsBrown in forum General Internet Terms
    Replies: 1
    Last Post: 03-31-2010, 02:13 PM
  2. Null pointer error in java
    By CoxWatson in forum Programming
    Replies: 2
    Last Post: 03-19-2010, 01:49 PM
  3. Installing Java Script within Minutes
    By Adonis987 in forum Programming
    Replies: 0
    Last Post: 01-08-2010, 03:17 PM
  4. Flash Action Script - Check Syntax
    By interworld in forum Programming
    Replies: 0
    Last Post: 10-26-2008, 02:14 PM
  5. Java Script For Web Developers
    By vandana43 in forum Applications
    Replies: 0
    Last Post: 03-06-2008, 08:55 AM

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
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48