How would I convert the following prototype-based js code to jQuery? I'm stripping prototype out of an existing site that is having jQuery integrated into it and there are just a few pieces of code like this that were dependent on prototype:
function updateJobSubCategory(blockToUpdate, ParentID){
var url = '/resource/ajax/selectCategories.cfm';
var params = 'multiple=1&ParentID=' + ParentID + '&selectedList=' + CategoryList($('SubCategoryIDs'));
$(blockToUpdate).innerHTML = "<div>Loading...</div>";
var ajax = new Ajax.Updater(
{success: blockToUpdate},
url,
{method: 'post', parameters: params}
);
}