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 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Can a checkbox do 2 different things after it is clicked?

    Can a checkbox do 2 different things after it is clicked?

    Right now I am using this...
    Code:
    <input type="checkbox" onclick="processCheckbox(this);">
    <input type="checkbox" onclick="activLink(this.checked)">
    I don't want to have 2 checkboxes on my page, just 1 and get the same result.

    Is this possible?

    Chad

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,862
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Code:
    <input type="checkbox" onclick="processCheckbox(this);activLink(this.checked);">
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thanks abduraooft.

    I had tried that before and it didn't work.

    I was forgetting the ; between them.

    Works fine now, thanks again.

    Chad


  •  

    Posting Permissions

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