开发者

Show content on click

I am trying to use Jquery in a Wordpress page, exactly how it is don开发者_如何转开发e in this static HTML page: http://www.zestcatering.co.za/associates.html ( click on Wedding Concepts )

Any plugins out there to get this working?

Many thanx!


Add a click handler to the weddingConcepts element when the document is loaded.

$(".weddingConcepts").click(function(){
    $(".weddingConceptsContainer").show();
});

This is assuming that the weddingConceptsContainer element initially has display:none;


Check the source code.

javascript: $('#content').load('associate1.html');

It's basically saying to load the contents of associate1.html in the #content div. You don't need any plugins for something like this.


That page is not static.

It is using jQuery and ajax.

One example:

<a href="#" onclick="javascript: $('#content').load('associate1.html');">Wedding Concepts</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜