tag:blogger.com,1999:blog-8556301325660294947.post1488835082378913952..comments2024-02-27T16:13:58.322+06:00Comments on Melick's Blog: window.document.getElementById not working in the SharePoint 2010Unknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8556301325660294947.post-21328524480310648992012-07-08T00:18:27.993+07:002012-07-08T00:18:27.993+07:00@Wilmann Gomez,
Hi,
[0] getting the first eleme...@Wilmann Gomez,<br /><br />Hi, <br /><br />[0] getting the first element of the array. because getElementByName("txtName") returns array not a single elementbhttps://www.blogger.com/profile/03242058312177835469noreply@blogger.comtag:blogger.com,1999:blog-8556301325660294947.post-15955703300414775972012-07-07T00:58:11.197+07:002012-07-07T00:58:11.197+07:00I'm trying to do the same in an HTML form webp...I'm trying to do the same in an HTML form webpart. can you clarify what the '[0]' does?<br /><br />I would try to use it in the following way<br /><br />window.document.getElementByName("txtName").value;<br /><br /><br /><br />ThanksAnonymoushttps://www.blogger.com/profile/15164740847023686647noreply@blogger.com