Forum Archive - [Solved] translated javascript doesn't work

[Solved] translated javascript doesn't work
Aug 17, 2014 2:59 pm by Webmaster_Showlib
Hi, I introduce a script (javascript) in my page to display and hide a set of text. https://www.showlib.com/faq-residences All work fine, when I click on the image, the text are displayed and hidden. I translate it https://www.showlib.com/en/faq-residences When I click on the image, nothing happen and the page is reloaded. Can you help me ? Thank you BR
Re: translated javascript doesn't work
Aug 17, 2014 9:20 pm by Edvard
Hi, "a" tag should have a href attribute, in your case you don't have it. So I would suggest to set a href="#" and add return false; in the end of javascript onclick event like this: <a onclick="plusmoins('pic2');cachemontre('Question2');return false;" href="#"> Thanks!
Re: translated javascript doesn't work
Aug 17, 2014 10:20 pm by Webmaster_Showlib
Done and it works well :) Thanks a lot Edward br

SIMILAR TOPICS

GT doesn't work...error 404 pageJan 28, 2019 5:36 pmReplies: 1Post by: vincenzodinuzzo
Add links to all translated posts on every Wordpress postJan 14, 2019 8:51 pmReplies: 5Post by: ptsniper
flag doesn't clickDec 10, 2018 6:52 amReplies: 3Post by: maga
Combining manually translated French pages with GTranslateOct 16, 2018 2:24 pmReplies: 3Post by: oxygensmith
Any ideas on what I need to configure this to work correctlySep 15, 2018 4:44 pmReplies: 1Post by: milangomes

Try GTranslate with a free 15 day trial