How to make the submit action work when a form is in a modal? 

The behavior now is that upon clicking submit, nothing happens. If I add 
data-dismiss="modal" to the input tag, the modal is dismissed but the 
action is not loaded as specified in the form target (in this case a black 
page)

here is the form

<div class="modal-body">   <form class="form-horizontal" 
action="/subscribe/mail/" method="post" id="mc-embedded-subscribe-form" 
name="mc-embedded-subscribe-form" target="_blank" novalidate>
<fieldset>
             <div class="control-group">
                 <input placeholder="first name" class="input-xlarge" 
type="text" id="mce-FNAME" name="FNAME">
             </div>
             <div class="control-group">
                 <input placeholder="last name" class="input-xlarge" 
type="text" id="mce-LNAME" name="LNAME">
             </div>

             <div class="control-group">
                 <input placeholder="email address" class="input-xlarge" 
type="text" id="mce-EMAIL" name="EMAIL">
             </div>
             <div id="mce-responses" class="clear">
                <div class="response" id="mce-error-response" 
style="display:none"></div>
                <div class="response" id="mce-success-response" 
style="display:none"></div>
             </div> 
             <div class="control-group">
                <input class="btn  btn-success" name="subscribe" type="submit" 
id="mc-embedded-subscribe" value="send your request" >
             </div> 
         </fieldset>

</form></div>

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to