html点击input没有出现光标怎么办

html5点击input没有出现光标完美解决方案

<input type="text" placeholder="输入姓名" class="inputname" id="id_name">
<input type="text" placeholder="输入手机" class="inputphone" id="id_phone">

直接自己用jquery 写点击出现光标

$('.inputname, .inputphone').on('touchstart',function () {
$(this).focus();
})
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容