# Jquery help in variables

**URL:** <https://forum.kirupa.com/t/jquery-help-in-variables/308883>\
**Category:** Uncategorized\
**Created:** [May 2, 2010, 6:14pm UTC](https://forum.kirupa.com/t/jquery-help-in-variables/308883 "2010-05-02T18:14:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saucey](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@saucey](https://forum.kirupa.com/u/saucey)\
**Post date:** [May 2, 2010, 6:14pm UTC](https://forum.kirupa.com/t/jquery-help-in-variables/308883/1 "2010-05-02T18:14:30Z")

</div>

hi ive created this variable but ive tried loads of combinations to refer back to it and im have problems

var hides = $(“button”).hide();

$("#ok").click(function(){  
$hides

```
        });

```

after i get the click function i want to then access my variable to hide that other div when the button is clicked.
