Reputation: 134
When I answered true
it shows me an error:
modal is not a function
When false
it displays the HTML fine. I do not understand why html()
works but not modal()
.
$('#conxModal').modal('toggle'); // Work here
function postProcessing(data) {
$.each(data, function(key, val) {
if (val == true) {
$('#conxModal').modal('toggle');
}
if (val == false) {
$("span#erreurcnx").html('bad');
}
});
}
Upvotes: 0
Views: 65