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
精彩评论