asp.netvisual-studio-2010drop-down-menuaspbutton

Is there a way to have a ASP.NET Button with a dropdown menu?


I am trying to place a button on a webform in which when I click on it a submenu will appear giving me other options to navigate on my application. Is there any way to do it? Can you place sample code please.


Solution

  • try this: http://jsfiddle.net/MXkCb/

    <input type="button" value="show more options" class="showmore"/> <div><ul> <li>option 1</li> <li>option 2</li> <li>option 3</li> <li>option 4</li> </ul></div>

    $('.showmore').on('click', function(){ $('div').show("slow"); });