Neil的備忘錄

          just do it
          posts - 66, comments - 8, trackbacks - 0, articles - 0

          I have the following jQuery code (similar to this question) that works in Firefox and IE, but fails (no errors, just doesn't work) in Chrome and Safari. Any ideas for a workaround?

          $("#souper_fancy").focus(function() { $(this).select() });
          = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
          ANSWER:
          
          

          It's the onmouseup event that is causing the selection to get unselected, so you just need to add:

          $("#souper_fancy").mouseup(function(e){
                  e
          .preventDefault();
          });

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 科技| 浪卡子县| 景泰县| 苍梧县| 鄂州市| 东辽县| 西宁市| 南平市| 昌都县| 西丰县| 江达县| 乐山市| 台东市| 化州市| 江孜县| 长治市| 福安市| 江源县| 保定市| 肇州县| 德令哈市| 逊克县| 丽水市| 浑源县| 昆山市| 类乌齐县| 玉山县| 准格尔旗| 西乡县| 延庆县| 富源县| 肇源县| 青州市| 航空| 泰安市| 雷州市| 崇文区| 容城县| 利津县| 修武县| 澄迈县|