Results 1 to 2 of 2

Thread: Javascript onChange doesn't work when changed buy another script

  1. #1
    Join Date
    Nov 2006
    Posts
    249

    Javascript onChange doesn't work when changed buy another script

    I have some javascript that runs when a user checks/unchecks a checkbox, and that works fine. I also have some javascript that will uncheck all boxes if a user changes a dropdown menu, that works fine as well. But the problem is I need the script to run as if each of the checkboxes was clicked when the second script runs. Is there a simple way of doing that? like change onChange=""; to something else, or do I actually need to do something to my code?

    Any help is appreciated.

  2. #2
    Join Date
    May 2011
    Posts
    40
    I assume your script that unchecks everything simply iterates through all checkboxes, you could simply call the same callback as onChange inside the iterating loop and thus it would get called for each box. If desired you could even add in an if statement that would only run the callback if it was actually changed. Hope this helps.

Similar Threads

  1. Why doesn't it work?
    By Kiss-the-Sky in forum General Questions
    Replies: 1
    Last Post: 18 Jan 2008, 12:54 AM
  2. Why doesn't this work in Firefox?
    By philminatz in forum General Questions
    Replies: 0
    Last Post: 28 Mar 2006, 10:47 PM

Posting Permissions

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