How to wp_enqueue_script jQuery inside a Plugin
<p>I would like to use jQuery in my Wordpress plugin. I'm trying to load the jquery library using the enqueue script but its throwing an error.</p>

<p><em>Error: $ is not a function</em></p>

<p>Here's the code snippet that's inside my main plugin.php file...</p>

<pre><code>function ($post)
{
    wp_enqueue_script('jquery');
    ?&gt;
    &lt;script type="text/javascript"&gt;
    function doTestParse(searchString){
        var rx = new RegExp('(?![^&lt;]+&gt;)'+searchString, "gi");
        $(this).html($(this).html().replace(rx, '&lt;b&gt;$&amp;&lt;/b&gt;'));
    }
    &lt;/script&gt;
&lt;?php ?&gt;
</code></pre>
