dfowler Posted April 7, 2008 Share Posted April 7, 2008 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 More sharing options...
dfowler Posted April 7, 2008 Author Share Posted April 7, 2008 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.... Link to comment https://forums.phpfreaks.com/topic/100008-dynamically-populate-div/#findComment-511497 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.