Skip to main content
Inspiring
August 1, 2013
Answered

CFSELECT list are from the other CFSELECT

  • August 1, 2013
  • 1 reply
  • 746 views

I have 5 CFSELECT for Department, Manager, supervisor, Group Leader and Employees

I want to every CFSELECT list narrow down for an upper CFSELECT.

For example, once user select Department then all Manager, Supervisor, Group Leader and Employee list will be narrow down by department

and same for manager and supervisor and so on.

I can use iframe or jQuery to do every level, but it needs to call iframe or jQuery or 5 levels.

I would like to know are there any better way to handle this situation,

Your help and information is great appreciated,

Regards,

Iccsi,

    This topic has been closed for replies.
    Correct answer p_sim

    1. Prepare five select tags with their default value.

    2. Write AJAX using jQuery to inject data (option tag) in to the appropriate select tag.

    3. Bind the tags with the AJAX on change event.

    That's all!

    1 reply

    p_sim
    Participating Frequently
    August 1, 2013

    Use HTML select tag and jQuery AJAX to narrow down the options. There are plenty of examples on the Net.

    iccsiAuthor
    Inspiring
    August 1, 2013

    Do you mean to create HTML tags at run time to build any level lower or using ajax to inject data to lower level dropdown?

    Thanks a million for the information and help,

    Regards,

    Iccsi,

    p_sim
    p_simCorrect answer
    Participating Frequently
    August 1, 2013

    1. Prepare five select tags with their default value.

    2. Write AJAX using jQuery to inject data (option tag) in to the appropriate select tag.

    3. Bind the tags with the AJAX on change event.

    That's all!