select with 2 levels

I’m trying to make 2 selects, but second must get options from server by ajax. Second must be addicted to first choose (must be send as variable and get options to second select).

(working noob version)

http://webix.com/snippet/82e5f16c

maybe You have better idea to do that?

Perhaps filtering options on the client side will be handier:

http://webix.com/snippet/30832bc4