We can hide and show elements in J.
Query using the Hyde show actions this example page shows a demonstration of what our script will do
when we click the hide button the text becomes invisible over an interval of 1000 milliseconds or one
second when we click the show button the text becomes visible.
Also over an interval of one second we can see how this works by examining the script
in between our open and closed body tags.
We have three elements we've setup two buttons one with the I.D. hidden and one with the other with
the I.D. visible.
We've also nested some text in between an open and close paragraph.
Take
in our actual script.
We first apply a click event to our I.D. selector hidden.
Next we specify that we want to hide any text contained within a paragraph take the 1000 indicates how
long it should take to hide the element 1000 equates to one second.
Next we apply another click event this time to our I.D. selector visible.
This will make visible any hidden text contained within the paragraph tags the time interval is the
same as in our previous event
so when somebody clicks This button hide it will hide the text when somebody clicks this button with
the IP visible it will show any hidden text.