Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    317
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to unchecked checkbutton

    when reset button is pressed, i want the checkbox which has already "checked" by user to be "unchecked".

    I try to use:

    document.frm.Check.checked==false, but it failed to unchecked the checkbox, please help!

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That's a logical comparison, not the assignment of a new value. In other words, you've got one "=" too much.

    document.frm.Check.checked = false;


  •  

    Posting Permissions

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