I\'m tyring to use AJAX to populate a dropdown box based on the selection of another dropdown. I followed a tutorial using jQuery located here - http://remysharp.com/2007/01
Since JSON can be considered as associative array also, you may do smth like this:
$(function(){
$("select#ContactCompanyId").change(function(){
$.getJSON("contactList",{id: $(this).val(), ajax: 'true'}, function(j){
var options = '';
for (key in j) {
options += '';
}
$("select#QuoteContactId").html(options);
})
})
})
More info about JSON can be found in this article - "Mastering JSON"