New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to combine form elements in modal dialog? #50
Comments
could you re ask this on the mailing list? thanks! |
Check out http://nikku.github.com/jquery-bootstrap-scripting/. |
👍 |
When the user presses "Enter" in an input field I am getting that the modal disappears, and the form isn't submitted. I'm not sure why. I've also tried prevent the keydown event from bubbling when "Enter" is pressed (using stopImmediatePropagation), but the problem persists. |
Could be great, adding some specific "forms examples" on http://paynedigital.com/2011/11/bootbox-js-alert-confirm-dialogs-for-twitter-bootstrap or |
@dmvaldman: Same problem here. I hope it will be fixed soon! |
After spending way to much time on this, i got it! This is what i did: (First some background, im using the modal for a login form) Also theres no need for bootstrap-scripting for this to work. i was going to use it if i couldn't get it any other way, and it turns out you dont need it. :)
The key this is the code: data-toggle="modal" . You'll see in the JS you dont need to make the modal visible.
$(document).ready(function(){
});
Thats all you should need. I hope this helps someone trying to do this! |
use :disabled pseudo-class instead of [disabled] attribute
I was wondering what you suggest to combine a form and its elements inside a modal dialog / popover?
Currently I am using the following structure...
It works quite nicely, the only issue is that there is white stripe at the bottom, due to ...
The text was updated successfully, but these errors were encountered: