asked on
$(function() {
$("#dstr_dept").chosen({
width: "260px",
placeholder_text_single: "Select Some Options"
}).change(function() {
$(this).after('<div id="loader"><imgages src="img/loading.gif" alt="loading files" /></div>');
$.get('loadboxDstrsubcat.php?dstrdept=' + $(this).val(), function(data) {
$("#box_dstr").html(data);
$('#loader').slideUp(200, function() {
$(this).remove();
$("#box_dstr").trigger("chosen:updated");
});
});
$(this).after('<div id="loader"><imgages src="img/loading.gif" alt="loading files" /></div>');
$.get('loadboxAdrDstrsubcat.php?dstraddr=' + $(this).val(), function(data) {
$("#dstr_address").html(data);
$('#loader').slideUp(200, function() {
$(this).remove();
$("#dstr_address").trigger("chosen:updated");
});
});
});
});
ASKER
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
Open in new window
If this is a bit nasty, you can try the following - also asynchronous:
Open in new window
Haven't tested these actually, just guessing :)