Title: Custom JS code doesn&#8217;t work
Last modified: May 28, 2023

---

# Custom JS code doesn’t work

 *  [ilansky](https://wordpress.org/support/users/ilansky/)
 * (@ilansky)
 * [3 years ago](https://wordpress.org/support/topic/custom-js-code-doesnt-work-2/)
 * Hello,
 * I created a simple calculator and it works well. When I insert the code into 
   Elementor widget of HTML, the button doesn’t work at all.
   I place the HTML and
   JS inside the HTML widget also by using <script> tag, and the CSS in the custom
   CSS area.
 * This is the entire project in Codepen: [https://codepen.io/SoPH89/pen/yLRGjqB](https://codepen.io/SoPH89/pen/yLRGjqB)
   
   You can see that the button is doing the calculation but on Elementor it just
   keeps on returning 1, and that’s also what I get in the console.log.
 * Is there a possibiltiy that Elementor code is somehow blocking the JS code?
   Thank
   you very much.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-js-code-doesnt-work-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Elementor Team](https://wordpress.org/support/users/ozyeger/)
 * (@ozyeger)
 * [3 years ago](https://wordpress.org/support/topic/custom-js-code-doesnt-work-2/#post-16776115)
 * Hi,
 * Do you have Elementor Pro on your site?
 *  Thread Starter [ilansky](https://wordpress.org/support/users/ilansky/)
 * (@ilansky)
 * [3 years ago](https://wordpress.org/support/topic/custom-js-code-doesnt-work-2/#post-16776979)
 * Yes, I do.
 *  [Elementor Team](https://wordpress.org/support/users/ozyeger/)
 * (@ozyeger)
 * [3 years ago](https://wordpress.org/support/topic/custom-js-code-doesnt-work-2/#post-16781970)
 * Hi,Since you are an Elementor Pro user, you can open a support ticket at <a href
   =”[http://my.elementor.com”>my.elementor.com</a&gt](http://my.elementor.com”>my.elementor.com</a&gt);.
   I’d also suggest you check out our Elementor Community forum, we have created
   it to connect Elementor users together and share knowledge, <a href=”[http://my.elementor.com”>my.elementor.com</a&gt](http://my.elementor.com”>my.elementor.com</a&gt);.
   WordPress.org rules state that <a href=”[https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products”>commercial](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products”>commercial)
   products are not supported here</a>.
 *  Thread Starter [ilansky](https://wordpress.org/support/users/ilansky/)
 * (@ilansky)
 * [3 years ago](https://wordpress.org/support/topic/custom-js-code-doesnt-work-2/#post-16782206)
 * I did open a ticket and one of your team members told me to try the Facebook 
   group which no one was able to assist me with the issue.
 * That is why I’m writing here.

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

The topic ‘Custom JS code doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [ilansky](https://wordpress.org/support/users/ilansky/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/custom-js-code-doesnt-work-2/#post-16782206)
 * Status: not a support question