how to check a php cookie is set or not in jquery
<p>I am developing w php web site. Here I have set a php cookie</p>

<pre><code> setcookie('hotelId',$resHotel); 
</code></pre>

<p>I want to check whether it’s set or not using jquery or javascript. I have used the following code </p>

<pre><code>if($.cookie('hotelId')) {
        alert("yes");
    };
</code></pre>

<p>But it's not working</p>

<p>Is there is any way to find PHP cookie is exist or not in jquery</p>

<p>Thanks</p>
