Boostrap Modal doesn't work |
Hello I hope you can help me with the problem I'm having right now.
I'm trying to execute a code in JS using modals when pressing a button, the thing is, the HTML code who has the button generates itself Part of the Main View page Code: <tr class="odd"> In the id="edit_CU" the CU changes when the HTML code is generated, so is not always the same thats also with the id="delete_CU" When you click in the span icon will trigger the modal and show this: View page when you click Edit or Delete button will show a window with this message Code: <div id="modal_delete" class="modal fade"> In this view page ask the user if they want to delete their information when they click "Yes" it should pop up a message... but it does nothing, someone can give me a hand? This is the JavaScript Code: $("#modal_delete").on('show.bs.modal', function(event){
For one you need to use an anchor tag for href not a span tag.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Here is a jQuery and Bootstrap plugin for all types of Modals:
Bootbox JS What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |