母婴儿童"},{firId: 2,firName:"美容彩妆"},{firId: 3,firName:"营养保健"}];
var sec_class = [{secId: 1,secName:"奶粉...secName:"维生素",firId: 3},{secId: 6,secName:"胶囊",firId: 3}];
var thi_class = [{thiID: 1,thiName:"品牌奶粉...",secId: 1},{thiID: 2,thiName:"妈妈奶粉",secId: 1},
{thiID: 3,thiName:"粥/面条",secId...当第一个选择框发生改变后触发后面的事件,如果第二个json数据中所对应的第一个josn的ID值等于它选择框的value值,那么在把第二个接送数据放入第二个下拉框中,第三个同理。...当前面的选择框发生改变后,清除后面的选择框的内容,保留第一个。
$("#level3Class option:gt(0)").remove();
这句意思是移除下拉框中的内容,只保留第一个。