View Full Version : ID s in javascript

24 Oct 2010, 11:12 PM
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.

25 Oct 2010, 12:01 AM
If you don't know the id, then what DO you know?

25 Oct 2010, 1:41 AM
in html a string is displayed by using the Id of the string suppose if we want to change the string we the syntax document.getElementById('ID').innerHTML = 'value';In this case if I don't Know the id of the string how could i do that .....

25 Oct 2010, 1:42 AM
What is this to do with Ext JS extensions?

In fact what is this to do with Ext JS?

Are you a student, and is this an exercise given by your tutor for you to solve?

25 Oct 2010, 4:16 AM
Bad Animal ... bad Animal.... :)