![]() |
| ||
| Accessing objects that are not in the form fields http://www.contentmart.com/ContentMa...images/dom.gif I want to ask if there is a way to access an obcect which is not in a form field. My textbook doesn't cover that topic. All the sample code in it is done with the form fields. The picture above illustrates the DOM object model that is used in JavaScript. What I understand from the picture is there is no way to access a control which is not in a form field. For example, is there any way to make the code below work? <html> |
| ||
| Re: Accessing objects that are not in the form fields The easiest way is to identify the inputs rather than name them: <html> Those 'id' attributes have got to be unique. There are other ways to get at objects that aren't id'ed; see this page: http://www.pageresource.com/dhtml/ryan/part4-2.html |
| All times are GMT -4. The time now is 9:39 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC