sayedsohail Posted June 2, 2007 Share Posted June 2, 2007 Hi everyone, I added some hyperlink like tabs in my page and wish to replace the contents div with selected link. Is there a way i can replace the contents of my <div id="contents">, without refreshing the page. please help, here is my html code, which is calling the ajax function. <div id="navcontainer"> <ul> <li><a class="home" href="#" onclick="ajax("home.php");">Add</a></li> <li><a class="edit" href="#" onclick="ajax("edit.php");">Edit</a></li> <li><a class="delete" href="#" onclick="ajax("delete.php");">Delete</a></li> </ul> </div> <div id="contents" style="visibility:hidden;"></div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/54024-onclick-replace-div-contents-i-am-doing-correctly/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.