Php $\u获取搜索表单,Jquery高亮显示

Php $\u获取搜索表单,Jquery高亮显示,php,jquery,Php,Jquery,我在WordPress上制作了我的第一个搜索表单 <form action="/searchstock"><input name="stock" type="text" /> <input type="submit" value="Search" /></form> 在搜索页面上,我添加了以下内容 <?php } else { $args = array ( 'meta_query

我在WordPress上制作了我的第一个搜索表单

<form action="/searchstock"><input name="stock" type="text" /> <input type="submit" value="Search" /></form>

在搜索页面上,我添加了以下内容

<?php } else

{


                    $args = array (

    'meta_query'     => array(
        array(
            'key'       => 'available_no',
            'value'     => $_GET['stock'],
            'compare'   => 'LIKE',
        ),
        ),
    'number'         => '20',

);

// The User Query
$user_query = new WP_User_Query( $args );

// The User Loop
if ( ! empty( $user_query->results ) ) {
    foreach ( $user_query->results as $user ) {
        // do something
        echo '<strong><p>'. $user->display_name .' |  <a href="/profile/'. $user->user_nicename .'">View Profile</a></p></strong> <p>'. $user->available_no . '</p><br>';
    }
} else {
    // no users found
}

}

?>

现在我正在寻找一种突出显示搜索结果的方法。所以我试着去,但我似乎不知道如何让jQuery与我的PHP脚本一起工作