Closed. This question is off-topic。它当前不接受答案。
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
6年前关闭。
用
但是,如果名称包含
我的输入如下所示:
演示链接位于:Fiddle
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
6年前关闭。
用
input[name="abc"]
但是,如果名称包含
[
和]
之类的东西怎么办?我的输入如下所示:
<input type="text" name="abc[def][5][xyz][]" value="" />
最佳答案
如果属性值包含在[]
中,则无需转义""
$('input[name="abc[def][5][xyz][]"]')
演示链接位于:Fiddle