Hi I’ve made two little buttons which are divs with click event attached . Both of them of position:absolute and have the same z-index . The problem is when I double click on just the right button it selects the entire section below it . I’ve tried attaching a .dblclick(function(e) { on the section, body and button , this didn’t work .
e.preventDefault();
});
Thanks in advance .
On your html / button
CSS
unselectable="on"is for IE and Opera.You might also wanna take a look here: unselectable Text and Tim Downs answer.