could you use document.forms[0].position(document.all(id))
Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- "Aidan Whitehall" <AidanWhitehall@Fairba To: <[EMAIL PROTECTED]> nks.co.uk> cc: Subject: [ cf-dev ] OT: JS form question 01/09/03 11:57 AM Please respond to dev Is there any way to get the position of a form element in forms[0].elements given the id of that element? e.g. if there are two checkboxes like this: <input type="checkbox" id="AA01" onClick="toggleDisplay(this);"> <input type="checkbox" id="AA02" onClick="toggleDisplay(this);"> is there a way of saying something like document.foms[0].position(this.id) which would return in this example '1' given the id 'AA02'? Thanks. -- Aidan Whitehall <[EMAIL PROTECTED]> Macromedia ColdFusion Developer Fairbanks Environmental Ltd +44 (0)1695 51775 ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
