Jump to content

Recommended Posts

Hiya,

 

Hi there I was hoping for a little guidance if possible..

 

On my website I have a small area that shows "Most Popular" and underneath I have 4 hyperlinks: Blogs, Tips, News, Videos. i want it so that if the user clicks the hyperlink it prints the appropriate content below. the actual content would rarely need to be updated so can be hard coded.

 

I'm new to jquery so if someone could help me that would be super.

 

Thank You :)

Link to comment
https://forums.phpfreaks.com/topic/271597-jquery-to-print-content-on-hyperlink/
Share on other sites

Contrary to what you were told in the other thread, I would not use this approach for something this simple*, that remains essentially static. There's no reason you can't do this with php.

 

*unless your goal is to do it without a page refresh.

Thank you fo your reply, I think i'd like to do it witgh a jquery after all as the page wont reload each time. i've bloomin done it too with help of this tutorial (incase any other newbies out there wanting to acheive similar results).

 

http://travisdazell.hubpages.com/hub/javascript-examples

 

Big thanks to you all, this forum has helped me learn so much over the years! :)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.