Hey all, Is there any way to set the value of a select and have it act as if it was changed by the user? I used
$(document).ready(function(){
$('#department').change(function(){
$('#academicbody').hide();
var selected = $("#department :selected").val();
$('#progrmmehome').load('/email/programmelist/'+selected);
});
$('#university').change(function(){
var selected = $("#university :selected").val();
$('#department').val(selected);
$('#progrmmehome').load('/email/programmelist/'+selected);
});
});
basically, when the university is selected, its value is the department id which is then used in the url. Thus in the change event of the select called "university", I was hoping, by setting the value of the department select, the logic in the change event for the department will execute.
Any ideas?