
How do I add a toggle between show hide button to an article?
This is the article I want to add it to:
http://www.redheadgraphicdesign.co.uk/index.php/services
I am currently running a freelance business called Redhead Graphic and Web Design. Applying my passion, knowledge and expertise in this field gained from 5 years of experience in the industry and educational environments, gives me exhilaration and freedom of expression which flows naturally into amazing creative designs. Read More.
I have tried adding this to the article in the front and back end but had no success.
<!DOCTYPE html>
<html>
<head>
$("button").click(function(){
$("p").toggle();
});
});
<body>
<p>This is a paragraph.</p>
<button>Toggle between hide() and show()</button>
</body>
I got this little bit of code from w3 schools and it works lovely on their site and does just what I need it to do.
https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_eff_toggle
Can you help?
My article is not a blog.
Jacky.
How do I add a toggle between show hide button to an article? This is the article I want to add it to: http://www.redheadgraphicdesign.co.uk/index.php/services I am currently running a freelance business called Redhead Graphic and Web Design. Applying my passion, knowledge and expertise in this field gained from 5 years of experience in the industry and educational environments, gives me exhilaration and freedom of expression which flows naturally into amazing creative designs. Read More. I have tried adding this to the article in the front and back end but had no success. <!DOCTYPE html> <html> <head> $("button").click(function(){ $("p").toggle(); }); }); <body> <p>This is a paragraph.</p> <button>Toggle between hide() and show()</button> </body> I got this little bit of code from w3 schools and it works lovely on their site and does just what I need it to do. https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_eff_toggle Can you help? My article is not a blog. Jacky.