Buying Two dropdown boxes, java and wordpress

Discussion in 'Programming' started by sakto, Jun 13, 2010.

  1. #1
    I have this posted in the programming section but it got no reply and so I'm reposting it here.

    I have this code in my wordpress submit form;

    <?php wp_dropdown_categories('show_option_none='.__('Select category', "wpct").'&hide_empty=0&hierarchical=1&name=category); ?>

    It shows the categories to choose from in the dropdown like below;

    MainCat1
    --MainCat1sub1
    --MainCat1sub2
    --MainCat1sub3
    MainCat2
    --MainCat2sub1
    --MainCat2sub2
    --MainCat2sub3

    I want to have two dropdown where the first one will show only the parent or the main category. And when a particular Main category is selected it will show a second dropdown showing its child or subcategory. This should be done without submitting the form first.

    I've already tried some tutorials for it's implementation but somehow I got stuck with just my basic knowledge in java. Anyway, 10$ for those who can provide me with a working code through pm.
     
    sakto, Jun 13, 2010 IP
  2. rajamanickam.a

    rajamanickam.a Well-Known Member

    Messages:
    636
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    158
    Digital Goods:
    2
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    We can create some custom code using Ajax to implement this. PM me if you are willing to implement custom code.
     
    rajamanickam.a, Jun 14, 2010 IP
  3. sakto

    sakto Active Member

    Messages:
    1,517
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    90
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Thanks for your interest but someone has already done it.

    Have a nice day.
     
    sakto, Jun 15, 2010 IP