Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <15075341.ROmfG5ADdx@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Mon, 03 Dec 2012 22:53:19 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <5462881.fXVs31Ce0e@PointedEars.de> <17c6ca39-08f8-41b7-9d84-b1862cd6bd39@t5g2000vba.googlegroups.com> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 74 NNTP-Posting-Date: 03 Dec 2012 22:53:20 CET NNTP-Posting-Host: 89ad8664.newsspool1.arcor-online.net X-Trace: DXC=FCl0aU8GL]4d8Nb@@ZG@b=ic==]BZ:af>4Fo<]lROoR1nkgeX?EC@@00E8X5N4L0E2DZm8W4\YJNSbVOP5 X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:17436 justaguy wrote: ^^^^^^^^ Please fix that, this is not a Web forum. And avoid Google Groups for posting, use a newsreader. > Thomas 'PointedEars' Lahn wrote: >> […] The correct way to address the problem actually >> posed by the question (as opposed to your answer) is: >> >> var input = document.createElement("input"); >> input.name = "partnumber" + cnt; >> input.id = "partnumber" + cnt; >> input.className = "autocomplete"; >> cell.appendChild(input); Please trim your quotations to the relevant parts next time. > @PointedEars, (AISB.) The thread and the attribution lines for the quotation levels make it clear already whose posting(s) you are referring to. > I'm using your syntax, > particularly, the input.className = "autocomplete" part. > > So, the code looks like this: > // cell 1 > var cell = document.createElement("td"); > var cellText = document.createElement('input'); > cellText.type = 'text'; > cellText.id = 'partnumber'+cnt; > cellText.name = 'partnumber'+cnt; > cellText.className = 'autocomplete'; > cell.appendChild(cellText); > newrow.appendChild(cell); > > […] > Outcome or rendered HTML: > First, new ROW of input type of text created and in correct position > as expected. > > > > type="text" name="partnumber" autocomplete="off" role="textbox" aria- > autocomplete="list" aria-haspopup="true"> > > > > > > > name="partnumber2"> > > > > Browser: Firefox 16 for windows > > What is wrong here? jQuery UI Autocomplete, jQuery UI, and jQuery. Avoid everything that has "jQuery" in it (any capitalization). PointedEars -- Sometimes, what you learn is wrong. If those wrong ideas are close to the root of the knowledge tree you build on a particular subject, pruning the -- Mike Duffy in cljs,