Jump to content

Dynamically Populate Div


dfowler

Recommended Posts

Hey guys, I'm trying to set up a system where depending on what you pick with a dropdown it will create a list of links within a div.  Here is the database structure:

categories pdfs cat_pdf

id id id

name name cat_id

description location pdf_id

date date[td][/td]

Basically, depending on the category you choose with the dropdown, it will display a list of links to the pdfs associated with that category.  I'm hoping to do this all on one page, and would think that AJAX might work.  However, I'm not really sure what to do.  Thanks for any help!

Link to comment
https://forums.phpfreaks.com/topic/100008-dynamically-populate-div/
Share on other sites

Here is the deal, I can create the dropdown list easily.  I'm just not sure what to do to have it take the selection and then populate the div correctly.  I thought about just having multiple hidden divs and switching out depending on the category chosen.  However, that would make page loading time ridiculous.  So I'm pretty stuck here....

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.