Hi there,

I am a bit new to web designing, so this might seem like a simple question. I had a page I was designing in which i had a link (or a menu of links) which when clicked would replace a div by the another div respective to the link. So in effect, on the homepage i have the list of links (in this case a vertical accordion) and on the right side is this div element (in a table). For each link i needed a div element (or multiple divs of same class) to show up when clicked. Its like a search result of sorts if am not mistaken


Recommended Answers


Try Bootstrap. This would be a great help for you to come up on
changing div elements while clicking on links.

Jump to Post

All 2 Replies

you may not need to do that. a menu of links could be contained on one div that shows the contents only to another one div tag. the key is onClick="your function" on the anchor tag then you must create a function on the javascript and do some sort of AJAX programming.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.