Jump to content

Jquery To Print Content On Hyperlink


yandoo

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! :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.