How to create an Ajax Cascading/Chained/Dependant Dropdown list (3 posts)

  1. Captain Kashmir
    Posted 3 years ago #

    Hey WordPress Community

    I need to create a 4 tier drop down list with each tier is dependant on the previous entry.

    it will be a Car Make >>> Car Model >>>> Engine Size >>> Varient

    I found a jquery tutorial when all the data is loaded together however eventually the fields will have over 1000 different car variants in total so this will put affect the load time of each page.

    Whilst googling through the internet for solutions I read up on AJAX which sounds like an ideal solution to my problem but most tutorials I have found of AJAX and drop down lists are to do with ASP.NET databases. Any one know of a tutorial of AJAX cascading Drop down that will work on a WordPress site.

    I should also add I need this tool to work as a widget in the sidebar of my page so I will be putting the code in the widget area in the WP Dashboard

  2. Captain Kashmir
    Posted 3 years ago #

    Also I'm not sure if I posted this in the correct section

    Apologies if I didn't

  3. Captain Kashmir
    Posted 3 years ago #

    So I found a work around using javascript. Once I have finished populating the lists I will link to the relevant pages.

    Seems a bit long winded but I couldn't find much alternative.

    My code

    it works so no complaints for now

Topic Closed

This topic has been closed to new replies.

About this Topic