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();
          });

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


          網站導航:
           
          主站蜘蛛池模板: 南宫市| 镇原县| 肃南| 平武县| 岚皋县| 温宿县| 门头沟区| 亚东县| 平泉县| 清水河县| 青岛市| 准格尔旗| 福州市| 平果县| 天祝| 芮城县| 郯城县| 印江| 屏边| 昭觉县| 贵定县| 平乐县| 巴里| 游戏| 昌黎县| 武定县| 上林县| 应城市| 平阳县| 准格尔旗| 仲巴县| 台前县| 抚松县| 叙永县| 太和县| 巴东县| 综艺| 桃园市| 微山县| 英德市| 离岛区|