Here is the HTML code I am working with:
<div class="menuTabs">
<div class="mtabArrowLeft">Left</div>
<input class="menutabBTN" name="" type="button" value="a" />
<input class="menutabBTN" name="" type="button" value="b" />
<input class="menutabBTN" name="" type="button" value="c" />
<input class="menutabBTN" name="" type="button" value="d" />
<input class="menutabBTN" name="" type="button" value="e" />
<input class="menutabBTN" name="" type="button" value="f"/>
<div class="mtabArrowRight">Right</div>
</div>
I need help in displaying the first four inputs with values from A to D, and then revealing the remaining hidden inputs when the user clicks on the mtabArrowLeft div. The maximum number of additional inputs to show at once should be 4. If the user hits the mtabArrowRight div, the process should reverse back to the original state.
Unfortunately, I am unsure how to achieve this functionality.
Below is the CSS code being used:
.menuTabs {
float: left;
width: 537px;
}
.mtabArrowLeft {
float: left;
height: 25px;
width: 35px;
margin-left: 15px;
margin-right: 4px;
}
.mtabArrowRight {
float: left;
height: 25px;
width: 35px;
margin-left: 3px;
margin-right: 15px;
}
.menutabBTN {
float: left;
height: 25px;
width: 65px;
margin-right: 3px;
margin-left: 3px;
padding: 0px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
color: #000;
text-align: center;
line-height: 25px;
}
Your assistance in solving this issue would be greatly appreciated. Thank you in advance.