开发者

Fire form post when double clicking a list box

开发者 https://www.devze.com 2023-02-02 01:02 出处:网络
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.

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

精彩评论

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

关注公众号