Skip to content

Tag: html

Transfer to a separate js file

I am a noob in javascript, I need to hide a piece of code that I use in html in a separate js file and use it in several pages of the site, how can I do this? This is the code that protects mail from spambots: How can I transfer this code onmouseover=”this.href=this.href.replace(/x/g,”);” to…

Return original value jquery / php

I am using this code to run my extra button. It changes original price value to custom value. Is it possible to click again on button named „afterclickbutton“ to get price with original value – meaning get regular price, and reset whole thing, so it could be possible to click again and get custom value,…