使用jQuery进行部分匹配? [英] Making partial matches with jQuery?
本文介绍了使用jQuery进行部分匹配?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想找到所有包含_date
我的代码是这样的:
<input type="text" name="creation_date" id="id_creation_date" />
我可以为此使用正则表达式吗?我需要为正则表达式安装一些额外的东西才能与jQuery一起使用吗?
Can I use regex for that? Do I need to install something extra for regex to work with jQuery?
推荐答案
我正在考虑其中其中之一 ...
I'm thinking of one of these...
$('input[id*="_date"]').css('background-color', 'red');
这篇关于使用jQuery进行部分匹配?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文