Click here to Skip to main content
15,886,095 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi to all,

i have a html program which has 400 div ids and each display a certain info for the user to choose one of two/three events to occur .

now i want the div ids to be displayed so that i can check the navigation links

here is a sample

<Div ID="1" CLASS="text">
<P>hello to all. choose difficulty level :-
a) easy<BR>
b) moderate<BR>
c) hard</P>
</DIV>


i want 1 to be displayed above the text hello.similarly all 400 ids are needed to be displayed


thanks in advance
rudhra
Posted
Comments
Sergey Alexandrovich Kryukov 20-Oct-15 18:00pm    
What is that beast, "HTML program"? :-)
—SA
[no name] 20-Oct-15 18:17pm    
thanks sa but could u supply me the code for this situation if possible

thanks for the study links

1 solution

There is no such thing as "HTML program", period.

You can do DOM manipulation inside an HTML document, only if you include some JavaScript in it, using the HTML element <script>.
When you learn JavaScript and DOM, it's relatively easy:
http://en.wikipedia.org/wiki/JavaScript[^],
https://developer.mozilla.org/en-US/docs/Web/JavaScript[^],
https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model[^],
https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction[^],
http://en.wikipedia.org/wiki/JavaScript[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900