Select dynamic

QuestionsSelect dynamic
Gustavo Lazaro asked 8 years ago

Hi Abu. I have two fields in a record. One depends on a dropdown. The second I put together a select in the following format as selected in the first field. Thank you

$ Col [ "editoptions"] = array ( "value" => 'A:Cat A;B:Cat B');
or
$ Col [ "editoptions"] = array ( "value" => 'A:Cat A;B:Cat B;C:Cat C');
or
$ Col [ "editoptions"] = array ( "value" => 'A:Cat A;B:Cat B;C:Cat C;D:Cat D');
or
$ Col [ "editoptions"] = array ( "value" => 'S:SI;N:NO');

1 Answers
Abu Ghufran answered 8 years ago

If the options of dropdown are static, then you can connect onchange event of parent dropdown and reload the values of second dropdown using jquery.
Sample code for idea: http://pastebin.com/zQV1JNtP

Your Answer

20 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?