如何使用Bootstrap 3下拉菜单提交搜索表单

时间:2015-04-30 15:27:31

标签: jquery twitter-bootstrap

如何提交输入表单,下拉数据操作和输入隐藏。我正在使用Bootstrap 3.

以下是HTML代码。代码也是available on jsfiddle

private void Form1_Resize(object sender, System.EventArgs e)
{
   Control control = (Control)sender;
   //Access with and height with
   control.Size.Height; 
   control.Size.Width;
}

1 个答案:

答案 0 :(得分:0)

HTML

<ul class="dropdown-menu dropdown-menu-right" role="menu">
  <li><a class="optionclass" href="#" data-action="option_01">option 01</a></li>
  <li><a href="#" data-action="option_02">option 02</a></li>
</ul>

jQuery

    $('.optionclass').click(function(){
         $('.search-form').submit();
    });