Engineering Machine
Engineering Machine

Reputation: 642

Show hidden DIV in bootstrap modal with jQuery

I have the following form:enter image description here

Whenever the user clicks on 'Don't have a Paypal account?', I want to display another form within the modal.

enter image description here

However, after displaying the hidden DIV and scrolling the modal, the background fade will scroll as well.

My jQuery code:

var cardForm = $('#card-form');
cardForm.hide();

$("#display-card-form").click(function (e) {
   cardForm.show();
   e.preventDefault();
 });

Upvotes: 2

Views: 1702

Answers (1)

cfnerd
cfnerd

Reputation: 3799

If possible, upgrade from v3.3.2 to v3.3.4. This issue will be resolved.

I attempted an example first in 3.3.4, as that is what I am on. Once you specified you were on 3.3.2, I downgraded and saw your issue. This was a bug they fixed in the latest release (#15881).

Hope this helps.

Upvotes: 2

Related Questions