Improved filtering implemented.
This commit is contained in:
@@ -12,13 +12,13 @@ $(function () {
|
||||
});
|
||||
|
||||
$("form select#Year").change(function () {
|
||||
$.getJSON('/Log/GetValidLogMonths', { year: $(this).val() }, function (months) {
|
||||
var options = '<option>Select Month</option>';
|
||||
for (var i = 0; i < months.length; i++) {
|
||||
options += '<option>' + months[i] + '</option>';
|
||||
}
|
||||
$("form select#Month").html(options);
|
||||
});
|
||||
var year = $(this).val();
|
||||
var months = availableLogYearMonths[year];
|
||||
var options = '<option>Select Month</option>';
|
||||
for (var i = 0; i < months.length; i++) {
|
||||
options += '<option>' + months[i] + '</option>';
|
||||
}
|
||||
$("form select#Month").html(options);
|
||||
});
|
||||
|
||||
$("input#ModelYear,input#Price,input#VehicleId,input#EndOdometer,input#GasPurchased").numeric();
|
||||
|
||||
Reference in New Issue
Block a user