jquery异国情调的id选择 [英] jquery exotic id selection

查看:69
本文介绍了jquery异国情调的id选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何选择jeury这个表格的身份 1329456738.1053,姓名

Does anyone know how to select with jeury an id with this form 1329456738.1053,name?

非工作示例: http://jsfiddle.net/zep6Y/

<div id="1329456738.1053,name">Some text</div>
<a href="#" class="publish_post" id="1329456738.1053">aaa</a>





$('#1329456738.1053,name').text()


推荐答案

刚检查过,作品:

$('.publish_post').click (function(){                        
                        alert (this.id);    
                        alert ($('#1329456738\\.1053\\,name').text());
})

这篇关于jquery异国情调的id选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆