Modal: < /p>

Awesome!
Your booking has been confirmed. Check your email for detials.
OK
< /code>
Ajax: < /p>
$('#form').on('submit', function (e) {
e.preventDefault();
var f = CKEDITOR.instances.text.getData();
var text = String(f);
var n=text.length;
var title = $('#title').val();
var docu_id = $('#docu_id').val();
var hidden_snippet = $('#hidden_snippet').val();
if (n!=0) {
$.ajax({
type: 'POST',
url: '/knowmore/index.php/ask_controller/book_add',
data: {text:text,title: title,hidden_snippet: hidden_snippet,docu_id:docu_id},
success: function (data)
{
$("#myModal").modal('show')
location.replace('/knowmore/index.php/index_controller/documentation/'+docu_id+'');
}
});
} else { alert('Enter contents of the Article!'); }
});
< /code>
Ich habe $ ("#MyModal"). Modal ('show') verwendet, um es zu zeigen, aber alles, was ich bekomme, ist ein Fehler, dass Modal keine Funktion ist. < /p>