# Onclick action for button

**URL:** <https://forum.pinegrow.com/t/onclick-action-for-button/3012>\
**Category:** Beginners\
**Created:** [May 20, 2019, 4:14am UTC](https://forum.pinegrow.com/t/onclick-action-for-button/3012 "2019-05-20T04:14:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![creativedevil](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@creativedevil](https://forum.pinegrow.com/u/creativedevil)\
**Post date:** [May 20, 2019, 4:14am UTC](https://forum.pinegrow.com/t/onclick-action-for-button/3012/1 "2019-05-20T04:14:32Z")

</div>

hi,

in plain php the onclick action is`<button type="submit" name="submit" class="btn order-btn" onclick="contactus();"><strong>Order Now!</strong></button>`

but in pinegrow the code i made it like`< button type="submit" id="submit" onclick="contactus();"> <?php _e( 'Submit', 'numerolight' ); ?> </button>`

but the action is not working the javascript doesn’t run…have i put the code correctly for the button? am i missing somethign here do i need to change something in the corresponding html file too?
