To work with jQuery version above 1.9.x
HTML
The html markup as shown above:
- Go to the store
- Pick up dinner
- Debug crash
- Take a jog
JS
Use preventDefault() instead of return false which doesn't kill any other handlers you might have
$('li').on('selectstart', function (event) {
event.preventDefault();
});
Example: jsFiddle