checkbox validation in jquery

Discussion in 'jQuery' started by learnerabn, Sep 20, 2010.

  1. #1
    Hi all,

    I am having a form there i want to fill the text box automatically whenever the check box is check and i want to clear the text box whenever the check box is unchecked...

    can any body tell me an idea to do this...

    Thanks in advance...
     
    learnerabn, Sep 20, 2010 IP
  2. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi...

    I got it by .is(':check') event

    but i have another question how add two numbers in jquery?

    Thank you...
     
    learnerabn, Sep 20, 2010 IP
  3. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi...

    for that also i got the answer by parseint...

    thank you all...
     
    learnerabn, Sep 21, 2010 IP
  4. GFX_Lover

    GFX_Lover Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can also do the same by eval();
     
    GFX_Lover, Oct 3, 2010 IP
  5. kefutiwi

    kefutiwi Member

    Messages:
    118
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #5
    use the 'check:' event
     
    kefutiwi, Oct 22, 2010 IP