i have a HTML file index.HTML. i wanna load external files( 1.HTML, 2.HTML, 3.HTML) into a div on button click my HTML is something like this
<div class="buttons">
<button type="button">button1</button>
<button type="button">button2</button>
<button type="button">button3</button>
</div>
<div class="mydiv">
</div>
on click of button1 1.HTML content to be loaded in above div. on click of button2, 2.HTML.. and etc.
i am very new to java script so let me know how to write a script for this. Any help would be appreciated. thanks in advance