So I want the features of a contenteditable div (text selection via keyboard being the main one), but I don\'t want to allow the user to edit the text - I presumed a r
r
To make all controls within a div locked or unlocked, try this :
....
lockDiv = function(lockIt){ if(lockIt){ $('#lockableDiv :input').attr('readonly', true); }else{ $('#lockableDiv :input').removeAttr('readonly'); } }