Question

This question was answered incorrectly. Please help. I need help using jquery to list 4 links....

This question was answered incorrectly. Please help.


I need help using jquery to list 4 links. They should be labeled part 1 -4. When the link is clicked on, a description should appear under it about the link , followed by the link to the page. Please make all links to hw1.html and all descriptions can just say example.


thank you

please show output so I know it actually works

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

code:

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
for(var i=1;i<=4;i++)
{
var _text="<a target='_blank' href='hw1.html' onclick='myFunction()'>";
_text+="<span>"+i+"<span>";
_text+="</a><br>";
  
$("#PAncherId").append(_text);

  
}
  
$("a").click(function(){
$("#pId").show();
setTimeout(function(){
$("#pId").hide();
}, 8000);
})
  
});
</script>
</head>
<body>

<p id="PAncherId"></p>

<p id="pId" style="display:none">Example</p>

</body>
</html>

Output:

C ǜ | ⓘ file:///C/Users/Phoenix/Desktop./jquery.html Penny 2k18-Goog D Extensions Spring MNC Hiber: e New Tab CV Scripts fo

I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)

Add a comment
Know the answer?
Add Answer to:
This question was answered incorrectly. Please help. I need help using jquery to list 4 links....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • URGENT HELP NEEDED: JQuery. PLEASE POST SCREEN SHOTS Task 1: Downloading jQuery Right-click the link to...

    URGENT HELP NEEDED: JQuery. PLEASE POST SCREEN SHOTS Task 1: Downloading jQuery Right-click the link to download the uncompressed latest version of jQuery Copy the jQuery.x.x.x.js file in the folder and specified as source file. Task 2: Download and install HTML-Kit 1. Navigate to htmlkit.com. 2. Click Download HTML-Kit 292. After it downloads, launch HKSetup.exe. Choose Full installation (the default) Uncheck Yes, download and install HTML-Kit Tools Trial. 6. Click Next>Finish. Task 3: Creating a Simple jQuery Application Launch HTML-Kit....

  • Please I need help to create a website, using HTML5, that connects to Microsoft SQL Server...

    Please I need help to create a website, using HTML5, that connects to Microsoft SQL Server This what I came up with but I don’t know how to get it to connect to my server? Please help <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" > <head>     <title>Untitled Page</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>     <script>     $(document).ready(function(){         $("#Button1").click(function(){         var database = openDatabase($("#Text1").val(), "1.0", "Contact Manager", 200000);                  });       });     </script> </head> <body> <span>Enter DataBase Name: <input id="Text1" type="text" /></span> <span> <input...

  • Hello Ive been tryting to add the CDN of jquery to my html code and I...

    Hello Ive been tryting to add the CDN of jquery to my html code and I keep getting an error Need help with this : ​​ Navigate to www.code.jquery.com in your Chrome browser. On this page, you'll find different stable versions of jQuery. Select uncompressed for jQuery Core 3.3.1. Copy the <script> tag that is given to you. In store_hours.html, paste that tag directly above your body's closing tag. This is the jQuery CDN. After you paste this code into...

  • CSET 3200 HOMEWORK 7 The resource to help you in this homework is located in Blackboard...

    CSET 3200 HOMEWORK 7 The resource to help you in this homework is located in Blackboard in the HTML Tutorial. Use Visual studio WEB Site to: Design a website for an institution; Rocket University. The website must contain the following links tabbed next to each other: 1. About. When one clicks on this link, it gives a brief description about Rocket University, the address of Rocket University, and a background image. Come up with your own description. 2. Academics. When...

  • I need a small website that to where I need to interlink a CSS file into...

    I need a small website that to where I need to interlink a CSS file into the HTML file. I don't know to save the files to have to be able to run with the CSS attributes show up in the browser when I do click the "open with" after I click on the saved HTML file. Basically when I copy files from the internet, to see if the HTML and CSS would interlink and run, the HTML would run...

  • please help me with this question and be sure run the program Make a series of HTML files that are all on a relevant to...

    please help me with this question and be sure run the program Make a series of HTML files that are all on a relevant to your project. Your project can be on any topic of your choice. You should include the following: An imagemap. A form that sends data to a mailto link. A page with anchors A table. Your table must include a least one instance of a COLSPAN or ROWSPAN attribute. Your table should also include some graphic...

  • Use your own words, don't copy and paste, don't use handwriting, please. please help me i need th...

    use your own words, don't copy and paste, don't use handwriting, please. please help me i need the answer today pleeeeeassssssseeee :(:(:( Task: Compare and contrast the design of two very different operating systems of your choice, e.g.: Linux, Windows 7… The comparison must cover at least:  Design principles  System components  Processes management  Scheduling management  Memory management Project Description: The student must prepare a formal report of 5 pages maximum (excluding cover page and appendices)....

  • i answered this question incorrectly, can someone please explain what I did wrong? thank you 6....

    i answered this question incorrectly, can someone please explain what I did wrong? thank you 6. Use the equation to answer the following questions (equation 2) Equation 2: + Fe(OH)3 MM 106.37m → H2SO4 MM-9.08g/m del Fe () M H2O M a. If you react 2.530g of Fe(OH)with 3.32ml of H 50., what is the limiting reagent assuming your desired product is Fea(SO) (show all work)? - (Don't worry about the sig figs, just make sure all of your final...

  • SUBJECT IS : NUTRITION! NEED ANSWERED ASAP PLEASE AND THANK YOU!! Any help will help! Need...

    SUBJECT IS : NUTRITION! NEED ANSWERED ASAP PLEASE AND THANK YOU!! Any help will help! Need answered before Saturday 5/11 7PM EST. This is a 'post-first' discussion forum There are currently 2 threads in this forum. Join the conversation by creating a thread! Create Thread FORUM DESCRIPTION DISCUSSION BOARD #4 Athletes and Nutrition Recently I taught a Human Biology course at Bentley University. Two of my students, Jeff and Chris, were friends and active weight lifters. They were also quite...

  • I need help with all parts please. Compare Lanes 1 and 2? What question is being...

    I need help with all parts please. Compare Lanes 1 and 2? What question is being asked? What is the results B.) Compare Lanes 3 and 4?                      How tight of a protein-protein association exists? Cytosol Anti-Dnak IP Anti-Dnak IP -Dnak -Dnak IIIIIIII Proteins bound to Dnak (Arb. Units) 1 2 3 4 5 6 0 2 8 10 4 6 Time (min) i Time (min) Adnak wt Adnak wt after 1% SDS labeled Adnak +unlabeled wt Figure 1. Transient...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT