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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Checkbox not syncing with Text Fields

    Here is the page I'm working on: http://www.flicknote.com/temp/form.html

    All I am trying to do is get the corresponding checkboxes to "tick" when a user enters text into the corresponding checkbox. If they delete the text from the text box the corresponding checkboxes would "untick."

    I have everything working except for when a user deletes the text from the text field. Checkbox #1 "unticks" but Checkbox #2 does not "untick."

    I have tried everything I can think of. Any help would be so very much appreciated!

    Best Regards,
    Dustin W.

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by charger View Post
    I have tried everything I can think of.
    Have you thought of actually adding an instruction to uncheck it? You clearly know how to write one but you just haven't done so.

    Also you're making unnecessary use of eval.

    eval("document." + FormName + "." + CheckName + w + ".checked=false");

    can be written as

    document[FormName + "." + CheckName + w ].checked=false;

  • #3
    New to the CF scene
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    here is the solution for others with the same issue:

    http://www.webdeveloper.com/forum/sh...218#post900218

    Regards, Dustin


  •  

    Posting Permissions

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