Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.straub-nv.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1494751.JhATDobLSb@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 09 Jan 2013 18:24:19 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit Subject: Re: Matching arbitrary pairs of elements Newsgroups: comp.lang.javascript References: <1kwe933.qjka3b5vluq5N%real-not-anti-spam-address@apple-juice.co.uk> <2021719.oBrLI1RlBM@PointedEars.de> <1kwfdkr.1b8rd88ahlfy8N%real-not-anti-spam-address@apple-juice.co.uk> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 37 NNTP-Posting-Date: 09 Jan 2013 18:24:23 CET NNTP-Posting-Host: b40572a4.newsspool2.arcor-online.net X-Trace: DXC=6jQj8ZEM]5c[F<50eo:0knA9EHlD;3Ycb4Fo<]lROoRa8kFdWjfmTbDZm8W4\YJNlb@mF9jNikde3>YBYU3JEom5TN3C2j\HQe X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:18034 D.M. Procida wrote: > Thomas 'PointedEars' Lahn wrote: >> D.M. Procida wrote: >> > So far I have managed to come up with http://jsfiddle.net/j2xYs/ - >> > which works, for one pair of select/input elements. >> >> This is not the Web. Surely you can also post a reduced test case here. ^^^^ > I wanted to show a working example. Which is a good idea, but not sufficient. Besides, if you had really used jQuery, it is debatable if one could reasonably call such an example “working”. >> > What I'd like to do is amend my JS so that if will be shown, whatever >> > [number] is. >> >> Only if you declare and use HTML5, IDs are allowed to start with "[". >> Otherwise they MUST NOT contain the "[" or "]" characters, and MUST NOT >> start with a decimal digit either. > > Of course, by "[number]" I just meant some number. As “some number” will, without loss of generality, be a decimal number, it will start with a decimal digit. So unless you are declaring and using HTML5, you will need to prefix at least one “_” or ASCII letter to it, as I did in my example. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.