Skip to content Skip to sidebar Skip to footer

Using A Tag To Replace Div

my site has 2 pages both have hyperlinks to each other but when user click on that hyperlink I just need a certain div of that page to be replaced by certain div on other page, ple

Solution 1:

you need to use javascript to trigger an event where the content of the div is replace when the button is clicks. Learn some javascript from w3schools.

<script type="text/javascript">
function dosomething(){
 //replace div content here
}
</script>
<a href="somelink" onclick="dosomething();">

Post a Comment for "Using A Tag To Replace Div"