// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .
// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .// $( "#order-otdel" ).change( function () { var otdel = $( "#order-otdel option:selected" ).val(); $( ".employee" ).each( function (i){ $.ajax({ idx: i, // <--- type: "GET" , url: "get.php" , data: "action=get_employee&oid=" + otdel + "&jid=" + $( this ).attr( 'job_id' ), success: function (options){ var cur = $( '.employee' ).eq( this .idx); // <--- cur.empty(); cur.append(options); //... }); }); }); * This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/99059/
All Articles