Confirm deletion using Bootstrap 3 modal box

You need the modal in your HTML. When the delete button is clicked it popup the modal. It’s also important to prevent the click of that button from submitting the form. When the confirmation is clicked the form will submit. $(‘button[name=”remove_levels”]’).on(‘click’, function(e) { var $form = $(this).closest(‘form’); e.preventDefault(); $(‘#confirm’).modal({ backdrop: ‘static’, keyboard: false }) .on(‘click’, … Read more

In Bootstrap open Enlarge image in modal

You can try this code if you are using bootstrap 3: HTML <a href=”#” id=”pop”> <img id=”imageresource” src=”http://patyshibuya.com.br/wp-content/uploads/2014/04/04.jpg” style=”width: 400px; height: 264px;”> Click to Enlarge </a> <!– Creates the bootstrap modal where the image will appear –> <div class=”modal fade” id=”imagemodal” tabindex=”-1″ role=”dialog” aria-labelledby=”myModalLabel” aria-hidden=”true”> <div class=”modal-dialog”> <div class=”modal-content”> <div class=”modal-header”> <button type=”button” class=”close” data-dismiss=”modal”><span … Read more

Modal width (increase)

Bootstrap 3 You can create or just override default bootstrap modal-lgby doing below: .modal-lg { max-width: 80%; } If not working just add !important so it would look like below .modal-lg { max-width: 80% !important; } Now call the modal-lg. <div class=”modal-dialog modal-lg” role=”document”> <!– some modal content —> </div For Bootstrap 4 refer to … Read more

Autocomplete issue into bootstrap modal

The position is right that it is “absolute”, while you need to specify this as an option to autocomplete: $( “.addresspicker” ).autocomplete( “option”, “appendTo”, “.eventInsForm” ); Where it can anchor the box with the results in any element, I have to stop it from being anchored to the form’s class! Here is a working JsFiddle!.