--- /dev/null
+org.wamblee.preselectSetup = function(id) {
+ var preselect = function(elem) {
+ if (elem.defaultValue == elem.value) {
+ elem.select();
+ }
+ };
+ // Add focus listeners.
+ $(id).find(":text, textarea").each(function() {
+ $(this).focus(function() {
+ preselect(this);
+ });
+ })
+}
\ No newline at end of file