How do I prevent bootstrap modal screen from appearing when I press enter
Hello,
Im using bootstrap to create a modal screen.
When I press "enter" to do a submit, the modal screen appears. But then disappears.
How can I prevent the modal screen from appearing when pressing "enter"
- document.onkeypress = enter;
- function enter(e) {
- if(e.which == 13){
- sendform();
- }
- }
-
- function sendform(){
- document.S1.MODE.value = "DSP";
- document.S1.submit();
- return true;
- }
Thank You