I am trying to implement delete row confirmation modal. I dont know how to do it
here is my modal code
<div class="modal hide fade" id="myModal">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn">Cancel</a>
<a href="#" class="btn btn-danger">Delete</a>
</div>
</div>
//here is link where i am calling modal
<a data-toggle=\"modal\" class=\"btn btn-danger\" rel=\"tooltip\" href=\"#myModal\" title=\"Delete Survey\" >Delete</a>
Here i want to pass the survey id to modal so that when i click button delete in modal it should delete respected rows.I dont know how should send the value
On Delete select button , it should pass the value with webservice and record the response of json in alert box
Use jquery. Here is a very basic example, assuming your webservice is a script called “delete_survey.php” on a server located at http://www.example.com:
I strongly suggest that you read the jquery ajax documentation, http://api.jquery.com/jQuery.ajax/