1
これに対応するネガティブセレクタはありますか? https://api.jquery.com/attribute-contains-selector/Jquery属性にセレクタが含まれていません
は、例えば、プロパティ名が
が、私は明らかしかしdidntの仕事 をしようとしたサブストリングの男をhaventはすべての入力を照会する<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>attributeContains demo</title>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<input name="man-news">
<input name="milkman">
<input name="letterman2">
<input name="newmilk">
<script>
$("input[name*!='man']").val("has man in it!");
</script>
</body>
</html>
Uncaught Error: Syntax error, unrecognized expression:
この1つはhttps://api.jquery.com/attribute-not-equal-selector/非常に近いですが、そうではありません同等、私は含まれていないと思います。
この1つはjQuery "not contains" selectorです。私はテキスト値を持っていないため、フォームが作成される方法はvalueプロパティ内にあります。