$.ajax({
The address should be replaced with your own',
data: {S_CourseID: courseid, CurrTime: new Date().getTime()}, //Add a timestamp, otherwise the data will not be automatically updated
json',
success: function(data)
{
if (data != null) {
if ( data.length > 0 ) {
for (var I = 0; i & lt; data.length; i) {
Specids = SPECIDS DATA [i] .s_specialtyid ","; // Get the data in the JSON object
length-1);
}
}