?

Log in

No account? Create an account

Previous Entry | Next Entry

Okay, so I've got this script that goes through a form on the page, finds a checkbox with an ID of "6," and sets that to "checked." All very straightforward.

...except that it also changes the checkbox with an ID of "18" to "checked" at the same time, for no readily apparent reason.

...and if I tell it to check/uncheck the checkbox with an ID of "18" it just doesn't do anything.

I think ... I may cry.

-The Gneech

EDIT: I found it. Turns out that I had one function being used for two different (and contradictory) things. Broke it into two functions, and it works now.

Tags:

Comments

( 3 comments — Leave a comment )
daemionfox
Jun. 22nd, 2010 03:35 pm (UTC)
Ahh.

The answer is: It's developed sentience and it hates you.
gavyn_lumier
Jun. 22nd, 2010 03:41 pm (UTC)
Can you change the ID of the checkbox 18 to something else?
the_gneech
Jun. 22nd, 2010 03:49 pm (UTC)
Not easily ... the IDs are dynamically generated from entries in a database.

Mostly, I'm just trying to comprehend JS's thinking on the issue.

-TG
( 3 comments — Leave a comment )

Latest Month

August 2019
S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728293031

Tags

Powered by LiveJournal.com
Designed by Tiffany Chow