I need to extract the value of studentId just 1413 how could this be done?
All this code below is stored in a single variable I think with regex it is possible but had no luck with it
$(document).ready(function () {
var getSchedule = function () {
$.ajax({
type: 'GET',
url: "Schedule",
data: {
"studentId": 1413,
"term": $("#Term").val(),
"academicYear": ,
"docId": $("#DocId").val()
},
beforeSend: function () {
$('#contentArea').html('<center><img src="../../Content/images/ajax-loader.gif" alt="loading"/></center>');
},
success: function (data) {
$("#contentArea").html(data);
},
dataType: "html",
error: function () {
alert("Error");
}
});
}