Skip to content
Advertisement

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 a separate js file and

POST-ing HTMLFormElements as Array Keep DOM Order Accross Browser

I am POST-ing three HTML input elements that has the PHP Array naming convention i.e. name=”name[]” (the 3 inputs have different names “A[]”, “B[]” and “C[]”). The input elements are children of <td> elements of which there are anything from 7 to 1001 <td>’s, meaning for each <td> there is 3 times the input elements i.e. 21 to 3003. The

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, then click and get regular

Advertisement