javascript - Multiple Arrays in Selects JQuery, PHP, MySQL -
i come because i'm working on php project want fast , smart. so, have make 2 selects using jquery work way:
when pick in first select option, select apear options corresponding first select.
i'm working objects, i'm going create arrays contain datas.
so have 2 tables:
material, family
each material got family (idfamily)
what want is:
- step 1: select family on first select
- step 2: on change, or on click or whatever (i'll figure out), second select appears. , in select, materials idfamily correspond family selected on first select appear.
is possible if save datas in 2 arrays ($materials , $families) ?
i'm sorry english, it's not native language. answers!
Comments
Post a Comment