I have the same problem as the user in this question, which is due to this bug in Webkit. However, the workaround provided will not work for my app. Let me re-state the prob
onclick="var self = this;setTimeout(function() {self.select();}, 0);"