/    Sign up×
Community /Pin to ProfileBookmark

location within a form ??

I’m stuck on one small thing in processing a form (like an order form).

I am using the ‘onchange’ event on a checkbox to get me to my script.
When I get there I need to know the index number within the form of that checkbox, if possible.
That way I can operate on other form fields RELATIVE to the checkbox.
This form is likely to expand with time and I don’t want to update the script.
It would be nice if this can be done.

Much thanks.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@deep_dhyaniNov 02.2005 — can paste here your source code?
×

Success!

Help @noboat spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...