bootstrap-modal

href link inside modal is not working

怎甘沉沦 提交于 2019-12-12 01:23:08
问题 I have a Modal in my webpage which uses Bootstrap. I've added anchor tags in it to which there are href links. When I am trying to click on that anchor element, it is not clickable. Anchor tag is not working in Modal. Please help me with this issue. Please find below code - <div class="portfolio-modal modal fade" id="editionsModal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-content"> <div class="close-modal" data-dismiss="modal"> <div class="lr"> <div class="rl"> </div>

How to send parameter based on which button is clicked in modal?

梦想的初衷 提交于 2019-12-12 00:04:24
问题 Demo and full code is like this : https://jsfiddle.net/oscar11/o5qn5gum/5/ My HTML code is like this : <button type="button">Click Me</button> <div id="tes"> </div> <!-- Modal Currency--> <div class="modal fade" id="priceModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> </div> <div class="modal-body"> </div> <div class="modal-footer"> <button type="button" class="btn btn

JavaScript toggle modal show after validation

杀马特。学长 韩版系。学妹 提交于 2019-12-11 22:53:20
问题 I'm submitting a form through a modal. Based on user input, some data will need sent to the modal. I need to validate the data before loading the modal. The current code prevents showing the modal if no orders are selected, but once the user selects some orders and resubmits the form, the modal still doesn't show. JS function batchHoldModalLauncher($hold_name){ // get modal id var modal_id = "#"+$hold_name+"_modal_id"; // check if any orders are selected if ($("#order_hold_table_body input

Rails4 after upload completion by input and then how to trigger bootstrap modal?

烂漫一生 提交于 2019-12-11 17:07:16
问题 My Gemfile: gem 'rails', '4.2.8' gem 'carrierwave', '~> 1.2', '>= 1.2.2' gem 'mini_magick', '~> 4.8' gem 'Jcrop', '~> 0.1.0' Now I want to use form_for upload the user picture, my show.html.erb : <%= form_for @user, :html => {:multipart => true} do |f| %> <div class="row " id="user_avatar_crop"> <!-- Choose Image --> <div class="col-md-12"> <%= f.file_field :picture, id: :user_avatar, onchange: 'this.form.submit()'%> </div> </div> <% end %> <!-- Modal --> <div id="uploadModalContent"> </div>

How to place Boot strap modal in vertically center aligned manner?

我怕爱的太早我们不能终老 提交于 2019-12-11 16:20:11
问题 Hi I have Bootstrap modal. I am not getting hoe to make vertically center aligned? $('#sectionAjaxLoader').modal('show'); <section class="modal" id="sectionAjaxLoader" data-keyboard="false" data-backdrop="static"> <img src='../../Images/ajax_loader.gif' alt="Please Wait..." /> </section> Any ideas how to implement this? 回答1: Use like this .modal { text-align: center; } .modal:before { display: inline-block; vertical-align: middle; content: " "; height: 100%; } .modal-dialog { display: inline

Toggle and Modals are not working on Angular app

陌路散爱 提交于 2019-12-11 16:15:01
问题 I am new to Angular and having some issues with getting Bootstrap toggle and Modal to work. BootStrap CSS files are working because the form is picking up the styling; however, I reckon JS files are not being linked properly. Please let me know what am I doing working. I did an NPM install of BootStrap and jQuery using the Angular CLI. Once installed, I linked the BootStrap and jQuery files to the angular.json file for the application to be able to use the libraries. "build": { "builder": "

Multiple Bootstrap Modals one after another. Is it possible?

。_饼干妹妹 提交于 2019-12-11 16:12:42
问题 I am new to bootstrap. I have a situation where I have to Show a Bootstrap Modal, When I click any button on that Modal I'll have to show another modal below that 1st Modal (Not Stackable). If I close the 1st Modal 2nd Modal has to go up to replace the position. Is it possible ? I tried to Show a Bootstrap Modal, and when I click any button I am setting modal height to sit next to the 1st modal. But That uses constant height value. if I change browser/computer it causing me problems. Any help

Stop/Pause video when Modal is closed (not using $ sign)

旧街凉风 提交于 2019-12-11 15:26:35
问题 I followed a walkthrough on YouTube for a simple form popup Modal, then replaced the form code with iFrame YouTube embedding. The guy was using Atom.io so I used that, and everything works except the audio keeps playing. I am very new and learning terms as I go. In the js code, the guide started lines with the word "document" but on StackOverflow people are using a $ sign then straight to the function(). This question has been answered multiple times however I don't know how to incorporate

Bootstrap, jQuery in modal doesn't work

情到浓时终转凉″ 提交于 2019-12-11 14:56:27
问题 Im making a page where you can check a few lines in a table, and then export them. Here is the code http://www.bootply.com/Hrll6yz0c1 Code for adding lines to modal export menu works great, but code that deletes lines inside modal doesn't work. Code for deleting $('button#delB').click(function() { $(this).parent().parent().remove(); }); For this generated table $('button#addB').click(function() { var toAdd = $(this).parent().parent().find("#sub_id").html(); var toAdd2 = $(this).parent()

Action after window.close()

自作多情 提交于 2019-12-11 12:47:41
问题 I have some troubles with javascript. I would like to do an action after closing a popup window <script type="text/javascript"> window.close() window.opener.document.getElementById("login").modal('hide'); </script> "window.opener.document.getElementById("login")" this part is recognize in the console, but not the modal function : "Uncaught TypeError: window.opener.document.getElementById(...).modal is not a function(…)" I was thinking it's because jquery is not called before my code, so I