Jump to content


Jquery To Print Content On Hyperlink

  • Please log in to reply
2 replies to this topic

#1 yandoo

  • Members
  • PipPipPip
  • Advanced Member
  • 472 posts

Posted 04 December 2012 - 02:29 PM


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

#2 Pikachu2000

  • Staff Alumni
  • I hate everything.
  • 11,384 posts
  • LocationFuture Independent Republic of Texas
  • Age:106

Posted 04 December 2012 - 02:37 PM

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.

"Java" is to "Javascript" about the same as "fun" is to "funeral".

Why $_SERVER['PHP_SELF'] is bad. || Why ORDER BY RAND() is bad || Every problem can be solved with rm -rf *

Random Quote: "

Remember, you're unique. Just like everybody else!

#3 yandoo

  • Members
  • PipPipPip
  • Advanced Member
  • 472 posts

Posted 04 December 2012 - 03:01 PM

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).


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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users