-
ID In javascript
hi all
in the following syntax document.getElementById('ID').innerHTML = 'value'; ID here is the element that has to be changed .is there any other way to use this method if the ID is not known.
Thanks In advance
-
-
What do you know? You must know something in order to find the right element. The right method depends on the situation-- you can use several other identifiers such as: location (first child element of a known element, for example), class (like id, but can be several elements), type (table, a, div, etc), maybe id based on some other knowledge you can determine?
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks