Bootstrap Modal not popping alert when clicked
up vote
1
down vote
favorite
Bootstrap Modal button save is not working when clicked.Below is my jquery:
$('#add-more-academic').on('click',function()
$('#myModal').modal();
)
//==================================================
$('.SaveAcademic').on('click',function(){
var academic = $('#new-academic').val();
alert(academic);
Upon clicking Save on my modal an alert dialog should display showing what I have entered in my text box. Below is my modal:
<!-- Modal -->
<div id="myModal" tabindex="-1" aria-hidden="true" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Academic Year</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-12">
<input type="text" name="academic_year" id="new-academic" class="form-control" placeholder="Academic Year">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-success SaveAcademic" id="SaveAcademic">Save</button>
</div>
</div>
</div>
</div>
</html>
javascript jquery html modal-dialog
add a comment |
up vote
1
down vote
favorite
Bootstrap Modal button save is not working when clicked.Below is my jquery:
$('#add-more-academic').on('click',function()
$('#myModal').modal();
)
//==================================================
$('.SaveAcademic').on('click',function(){
var academic = $('#new-academic').val();
alert(academic);
Upon clicking Save on my modal an alert dialog should display showing what I have entered in my text box. Below is my modal:
<!-- Modal -->
<div id="myModal" tabindex="-1" aria-hidden="true" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Academic Year</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-12">
<input type="text" name="academic_year" id="new-academic" class="form-control" placeholder="Academic Year">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-success SaveAcademic" id="SaveAcademic">Save</button>
</div>
</div>
</div>
</div>
</html>
javascript jquery html modal-dialog
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Bootstrap Modal button save is not working when clicked.Below is my jquery:
$('#add-more-academic').on('click',function()
$('#myModal').modal();
)
//==================================================
$('.SaveAcademic').on('click',function(){
var academic = $('#new-academic').val();
alert(academic);
Upon clicking Save on my modal an alert dialog should display showing what I have entered in my text box. Below is my modal:
<!-- Modal -->
<div id="myModal" tabindex="-1" aria-hidden="true" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Academic Year</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-12">
<input type="text" name="academic_year" id="new-academic" class="form-control" placeholder="Academic Year">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-success SaveAcademic" id="SaveAcademic">Save</button>
</div>
</div>
</div>
</div>
</html>
javascript jquery html modal-dialog
Bootstrap Modal button save is not working when clicked.Below is my jquery:
$('#add-more-academic').on('click',function()
$('#myModal').modal();
)
//==================================================
$('.SaveAcademic').on('click',function(){
var academic = $('#new-academic').val();
alert(academic);
Upon clicking Save on my modal an alert dialog should display showing what I have entered in my text box. Below is my modal:
<!-- Modal -->
<div id="myModal" tabindex="-1" aria-hidden="true" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Academic Year</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-12">
<input type="text" name="academic_year" id="new-academic" class="form-control" placeholder="Academic Year">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-success SaveAcademic" id="SaveAcademic">Save</button>
</div>
</div>
</div>
</div>
</html>
javascript jquery html modal-dialog
javascript jquery html modal-dialog
asked Nov 11 at 0:51
Collin Njuguna
61
61
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Check this link for more info about bootstrap and alerts.
I think it will help you because it did help me when I had alert problems.
– Marko Maksimovic
Nov 11 at 1:11
Let me have a look at it
– Collin Njuguna
Nov 11 at 1:16
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Check this link for more info about bootstrap and alerts.
I think it will help you because it did help me when I had alert problems.
– Marko Maksimovic
Nov 11 at 1:11
Let me have a look at it
– Collin Njuguna
Nov 11 at 1:16
add a comment |
up vote
0
down vote
Check this link for more info about bootstrap and alerts.
I think it will help you because it did help me when I had alert problems.
– Marko Maksimovic
Nov 11 at 1:11
Let me have a look at it
– Collin Njuguna
Nov 11 at 1:16
add a comment |
up vote
0
down vote
up vote
0
down vote
Check this link for more info about bootstrap and alerts.
Check this link for more info about bootstrap and alerts.
answered Nov 11 at 1:11
Marko Maksimovic
46
46
I think it will help you because it did help me when I had alert problems.
– Marko Maksimovic
Nov 11 at 1:11
Let me have a look at it
– Collin Njuguna
Nov 11 at 1:16
add a comment |
I think it will help you because it did help me when I had alert problems.
– Marko Maksimovic
Nov 11 at 1:11
Let me have a look at it
– Collin Njuguna
Nov 11 at 1:16
I think it will help you because it did help me when I had alert problems.
– Marko Maksimovic
Nov 11 at 1:11
I think it will help you because it did help me when I had alert problems.
– Marko Maksimovic
Nov 11 at 1:11
Let me have a look at it
– Collin Njuguna
Nov 11 at 1:16
Let me have a look at it
– Collin Njuguna
Nov 11 at 1:16
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244874%2fbootstrap-modal-not-popping-alert-when-clicked%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown