I have a few buttons. When the user clicks on any button, I want to give the impression that the button is pressed.
This is the code:
<table>
<thead>
<tr>
<th><button class="btn btn-danger" >Today</button></th>
<th><button class="btn btn-danger" >Tomorrow</button></th>
<th><button class="btn btn-danger" >DayAfterTomorrow</button></th>
</tr>
</thead>
</table>
And this works when I have one button:
<button class="btn" data-toggle="button">Today</button>
If the user clicks tomorrow, the data switch attribute still remains for the Today button. Instead, I want to disable the drag and drop attribute when another button is clicked.
Pavan source
share