开发者

Fire form post when double clicking a list box

I have an html list box and want to double click an item in the list box which then does a form post to show me a new page.

Is this possible? In other words can I fire a form post from a double click?

I am using Asp.net MVC 2 so need an action fired which will return the corresponding view fo开发者_如何学编程r the selected item in the list box.

JD.


$('#formName option').dblclick(function() {
  $('#formName').submit();
});

option would be html tag name for listbox element

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜