I am currently working on a website design for an upcoming festival. The festival spans over three days, so I have created buttons to navigate and load the content for each day separately.
Is there a way for me to make the content for the first day display automatically when the website is loaded?
Also, how can I modify the design of the buttons to indicate to users that the content has been successfully loaded?
<script type="text/javascript">
$(document).ready(function () {
$('.btn a').on('click', function(){
var btnindex = $(this).index();
$('.pgf .pgfone').siblings('.pgfone').css({'display':'none'});
$('.pgf .pgfone').eq(btnindex).css({'display':'block'});
});
});
</script>
<div class="btn" id="menu">
<a class="learn-more">DAY 1</a>
<a class="learn-more">DAY 2</a>
<a class="learn-more">DAY 3</a>
</div>
<div class="pgf">
<div class="pgfone" style="display: none;"><?php include('dayone.php'); ?></div>
<div class="pgfone" style="display: none;"><?php include('daytwo.php'); ?> </div>
<div class="pgfone" style="display: none;"><?php include('daythree.php'); ?></div>
</div>