これは私の質問に対する私の試みです
検索ボックス (HTML) があります。
<form method="post">
Search:<input type="text" name="search">
<input value="Search" type="submit">
</form>
私はそれからphpを持っています:
$search = $_POST["search"];
そして、Jquery:
$(function() {
var foundin = $('li:contains(" /* I want this part to be the bit entered by the form... $search */ ")').css( "color", "red" );
});
しかし、phpをjQueryに入れることができないようです。