I have a row of 5 buttons which has been implemented in the fiddle below. I want to implement the code in the way that if i click on any button e.g. Water a list of specific button appears vertically.Similarly a list of buttons should appear for all the 5 buttons and at one time there should be only one list visible.
<div id="outer">
<div class="inner"><button type="submit" class="msgBtn2" onClick="return false;" >Water</button></div>
<div class="inner"><button type="submit" class="msgBtn2" onClick="return false;">Public</button></div>
<div class="inner"><button class="msgBtn2">Transport</button></div>
<div class="inner"><button type="submit" class="msgBtn2" onClick="return false;">House</button></div>
<div class="inner"><button type="submit" class="msgBtn2" onClick="return false;">Utilities</button></div>
</div>
Here is the fiddle : http://jsfiddle.net/fku50o9v/
How can i do that? I tried implementeing it with OnClick but was unable to do so.
<>.