Click here to Skip to main content
15,917,481 members

Comments by Member 12196566 (Top 3 by date)

Member 12196566 3-May-16 8:43am View    
$(document).ready(function () {
$("#z").change(function () {
var options = {};
options.url = "/kontierung/changeZeitraum";
options.type = "POST";
options.data = JSON.stringify({ zeitraum: $("#z").val() });
options.dataType = "json";
options.contentType = "application/json";
options.success = function (changeZeitraum) { $("#z").empty(); };
$.ajax(options);
this.form.submit($("#z").val());
});
});

Sorry, but the brackets are closed properly
Member 12196566 3-May-16 8:24am View    
$(document).ready(function () {
$("#z").change(function () {
var x = ($("#z").val());
var options = {};
options.url = "/kontierung/changeZeitraum";
options.type = "POST";
options.data = JSON.stringify({ zeitraum: x });
options.dataType = "json";
options.contentType = "application/json";
options.success = function (changeZeitraum) {
$("#z").empty();
};
$.ajax(options);
this.form.submit($("#z").val());
});
});

is also not working
Member 12196566 3-May-16 8:13am View    
The ViewBag.zeitraum is filled with strings
when I set a breakpoint in the controller, this breakpoint is not reached by debugging.
But in IE or Edge it works :/