ajax - Load data to an open modal - bootstrap twitter -


there input field , href inside modal. href points phpfile, same file modal implemented, load data database , put result input field.

the problem when pressing href modal disappear , nothing happen.

i know there maybe way load data ajax while modal still open have no idea how it.

here code far:

trigger:

<!-- trigger --> <a href="#setupmodal" data-toggle="modal">open modal</a> 

modal:

<!-- modal box --> <div id="setupmodal" class="modal hide fade">   <div class="modal-header">     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>     <h3>modal header</h3> </div>  <div class="modal-body">  <input type="text" name="inputtext"/>                                                  </div>  <a href="test.php?getconfig=1">get current configuration</a>  <div class="modal-footer">   <button class="btn" data-dismiss="modal">close</button> </div> 


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -