# How to convert this JQuery button click to an onload instead?

**URL:** https://forum.kirupa.com/t/how-to-convert-this-jquery-button-click-to-an-onload-instead/327680
**Category:** web dev
**Created:** [March 20, 2012, 4:00am UTC](https://forum.kirupa.com/t/how-to-convert-this-jquery-button-click-to-an-onload-instead/327680 "2012-03-20T04:00:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![orionstar](https://avatars.discourse-cdn.com/v4/letter/o/51bf81/32.png) [@orionstar](https://forum.kirupa.com/u/orionstar)
#### Post date: [March 20, 2012, 4:00am UTC](https://forum.kirupa.com/t/how-to-convert-this-jquery-button-click-to-an-onload-instead/327680/1 "2012-03-20T04:00:16Z")

</div>

I’d like to have this slide function just work right after the page loads.  
Right now it’s a click button function. How do I do this please?  
I’m not a coder.

Thanks in advance.

```auto

<script type="text/javascript">

$(document).ready(function() {
  $('#slidebottom button').click(function() {
    $(this).next().slideToggle();
  });

  
});

</script>

```
