Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テキスト+変数を表示する方法を学びましたが、この場合はどうすればよいかわかりません。カンマで多くのバリエーションを試しましたが、基本的な知識の欠如がここで重要な役割を果たしていると感じています。助けてください
$('div:Contains('"Some text" + '+ $.trim(this.value) +'')')
SO フォーマットは、関数呼び出しが文字列リテラルとして解釈されていることを示しています。それよりも
試す
$('div:Contains("Some text"' + $.trim(this.value) +')')
また、あなたの目標は何ですか?