I\'m trying to write a drag & select functionality using HTML & JavaScript. By that I mean that there will be a set of objects with arbitrary absolute positions. I w
The main problem is suppressing actual text selection, which seems kind of against the very nature of a web browser.
The function you are looking for is e.preventDefault();
$("#inputform").mousedown(function(e){
    e.preventDefault();
    //console.log('mousedown');
}).mouseup(function(e){
    e.preventDefault();
    //console.log('mouseup');
});
This just solves the problem of text selection. I can see various drag-select js scritps across the web but somehow I am unable to make them work.