I'm trying to open a modal double clicking. I'm using this piece of code but it's not working:
$('#link').dblclick(function () {
$('#myModal').modal('toggle');
});
Fiddle here: http://jsfiddle.net/labanino/JKEj3/
Thanks!
I'm trying to open a modal double clicking. I'm using this piece of code but it's not working:
$('#link').dblclick(function () {
$('#myModal').modal('toggle');
});
Fiddle here: http://jsfiddle.net/labanino/JKEj3/
Thanks!
You need to remove data-toggle="modal"
from the link..
<a href="#myModal" role="button" class="btn" id="link">Launch modal</a>
http://jsfiddle.net/JKEj3/3/
You need to remove data-toggle="modal"
from button definition.
http://jsfiddle.net/JKEj3/5/