I have a cookie named `myName`

In php, to print the cookie value, I can simply do

```
<?=$_COOKIE['myName']?>

```

The shortest I have found in JS is:

```
<script>
    document.write($.cookie('myName'));
</script>

```

Is there not a better/shorter way to do this? Maybe with JQuery?

I am quite new to JS and moving a site over from PHP for mobile Phonegap Build dev so can't use PHP