I am trying to use a link from a menu item to call a javaScript function that uses jQuery to place the contents of an HTML file into a given ID within a DIV on a page.
Here is the link that points to the specific DIV and the also the HTML file.
Inline Code Example Here

<a href="" onclick="showLink('./parialContent/displayOne.html', '#mark02')">Display Link</a>

This is the function

function showLink(link, id) {
    $(id).html(link);
}

Can you show me what I am doing incorrectly.

Spelling error corrected in this line, but I am not getting the function to work yet.

<a href="" onclick="showLink('./parialContent/displayOne.html', '#mark02')">Display Link</a>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.