最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Jquery not working on mobile browser

programmeradmin1浏览0评论

I have a following jquery code that runs fine on desktop but doesn't run on mobile browser on my wordpress website. It attaches a parameter on ajax based search box but not doing on mobile browsers. Any idea why?

<script>

jQuery(document).ready(function($){ 


    $("input.orig").mouseout(function() {

    var stt = $(this).val();        


setTimeout(function() { 
    $("a.asp_res_url").each(function() {        
   var $this = $(this);       
   var _href = $this.attr("href"); 
   var _href2 = $this.attr("href").split('?')[0];
    $this.attr("href", _href2 + '?s='+stt);
        
    
});
}, 0);  
    
});
    
});
    
</script>

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论