Here is the link https://jsfiddle.net/0mrqgoxf/
$(function(){ var bt = $('#bt'); bt.click(function(){ var text = $('#text'); text.toggle(1000); }); }); I would like to replace the text from "Hide item" with "Show item" when the item is hidden / shown. I tried both if-else, and .text () method, and .toggle () - It does not work. I ask to help, as I only study jQuery. Thank you in advance.