calling a specific div

View: New views
1 Messages — Rating Filter:   Alert me  

calling a specific div

by noordung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

JavaScript is not my field and is a bit above my knowledge but I'm trying to get this thing working...

I'm trying to "call" a specific div, which doesn't have an id - only a class attribute. If I use getElementsByClassName it obviously returns me all elements with this class. But I would like to call only a specific one.

I'm thinking of modifying the HTML so I can insert an id att. into the div I want, then calling this id later in the script. Would that work or should I save myself some time?

Any suggestions well appreciated.