jQuery(function ($) { jQuery(document).on('change', '#categoryId', function () { let url = $(this).data('url')+$(this).val(); // let val = ; $.get(url,function (e) { console.log(app.jdata ); app.jdata = e[1]; console.log(app.jdata ); }); }); jQuery("#xtype").bind('change', function () { let t = $(this).val(); let op = []; try { op = JSON.parse($("#options").val()); } catch { console.log('no'); } let txt = ''; if (t == 'select' || t == 'multi' || t == 'singlemulti' || t == 'color') { for (const o of op) { let ttyupe = 'text'; if (t == 'color') { ttyupe = 'color'; } txt += `