Title: Script action for button
Last modified: August 21, 2016

---

# Script action for button

 *  Resolved [frankmyhre](https://wordpress.org/support/users/frankmyhre/)
 * (@frankmyhre)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/script-action-for-button/)
 * Hey all,
 * I’m using this script and so far it has been so easy so setup and use. However
   I’m considering launching a overlay div instead of going to a hole new page when
   the user presses a button.
 * So to be clear, my question is: is it possible to launch a jQuery etc. from the
   table buttons?
 * [https://wordpress.org/plugins/easy-pricing-tables/](https://wordpress.org/plugins/easy-pricing-tables/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [davidhme](https://wordpress.org/support/users/davidhme/)
 * (@davidhme)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/script-action-for-button/#post-5163514)
 * Frank,
 * Sure! This should work:
 *     ```
       $('.ptp-button').click(function() {
       // your code here
       }
       ```
   
 *  Plugin Author [davidhme](https://wordpress.org/support/users/davidhme/)
 * (@davidhme)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/script-action-for-button/#post-5163515)
 * (Assuming you’re using design 1 of course, other table designs may have different
   class names for their buttons.)
 *  Plugin Author [davidhme](https://wordpress.org/support/users/davidhme/)
 * (@davidhme)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/script-action-for-button/#post-5163639)
 * Closed due to inactivity.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Script action for button’ is closed to new replies.

 * ![](https://ps.w.org/easy-pricing-tables/assets/icon-256x256.gif?rev=2922075)
 * [Pricing Table WordPress Plugin - Easy Pricing Tables](https://wordpress.org/plugins/easy-pricing-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-pricing-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-pricing-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-pricing-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-pricing-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-pricing-tables/reviews/)

## Tags

 * [action](https://wordpress.org/support/topic-tag/action/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 3 replies
 * 2 participants
 * Last reply from: [davidhme](https://wordpress.org/support/users/davidhme/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/script-action-for-button/#post-5163639)
 * Status: resolved