Brothersoft.comWindows|Mac|Mobile|Games

|Message

Solve software problem quickly Share experience to help others Improve the ability of solving problem
Hide and Show Page Elements Using jQUERY

08/24/2011 01:20 by ThomasOakes

First answer posted by Bentley907 at 08/24/2011 01:20
Add Your Answer
10~1000 characters in length CAPTCHA:
1 Answers
  • Bentley907
    1. Create a new html file and put this line of code within the html head tagsto include the jQUERY file on our webpage so we can use two of its functions : hide and show later.
    2. Also within the head tags of the same html file, include this line of jQUERY codeto hide the page element with id=tog for a duration of 2000 milliseconds and then call the callback function 'show' to show that page element again.
    3. Then include this callback function 'show' within the head tags of the same html file as wellto show the page element for the duration of 2000 milliseconds and then call the callback function 'hide' to hide that page element again.
    4. Now the show and hide process will go on forever after you have clicked on a button of your webpage to initiate the hide process.
    5. Finally within the body tags of the same html file, create the p tag with id=tog plus the button uses to initiate the hide process.
    6. This should do it, now after you have included all those code on your html file. Save the file and run that webpage with your web browser to see the outcome.
  • Was this answer helpful? 00 · 08/24/2011 01:20
Add Your Answer
10~1000 characters in length CAPTCHA:
Related Questions
Q:Use the JavaScript Confirm Function

A:Create a variable and initialize its value to the return value of the confirm() function. Use a set of if statements or conditional operators...(more)

Q:What's Difference Between javascript and PHP?

A:1.JavaScript runs on the client (i.e., in your browser). PHP runs on the server. 2.PHP allows you to interact with databases and provides v...(more)

Q:How to Change the Label Color in JQuery

A: Launch Notepad or an HTML editor, and open one of your HTML documents. Paste the code shown below into the document's body section: Male ...(more)

Q:Split String in Javascript

A:Note that the split method can take up to 2 arguments, both the arguments are optional. The syntax for split is as follows string.split([sepa...(more)

Q:What's Difference Between javascript and Java?

A:Java, developed under the Sun Microsystems brand, is a full-fledged object-oriented programming language. It can be used to create standalone ...(more)

0 people are following

Ask a question now
Write a title for your question

JavaScript

Visual authoring lets Web and Intranet designers rapidly build JavaScrip.
Latest version:2.1
License:Shareware
OS:Windows XP/2000/98/Me/NT
Total downloads:1,124,224
Rank:1 in Site Management
Download It

Share with friends

New features is coming

  • 1. Providing high-quality answers to be a verified Q&A expert
  • 2. Ask and answer questions to get Brothersoft credits

Added Successfully!

×

Are you sure to delete your answer?

NoYes

×

Are you sure to choose it as the best answer?

NoYes

×

Voted Successfully!

×

You can't vote for yourself

×

You can't choose your own answer

×