Click here to Skip to main content
15,896,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For delete option, I am using a bootstrap modal but it is not visible properly.
Please help me on this. Here is my code :

HTML
<td><a href="#basicModal" data-toggle="modal" >Assign</a></td>


Here is the modal code,

HTML
<div class="modal fade" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
      <div class="modal-dialog modal-sm">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h4 class="modal-title" id="myModalLabel">Basic Modal</h4>
          </div>
          <div class="modal-body">
            <h3>Modal Body</h3>
            <label class="control-label">Subject:</label>
            <select class="form-control" name="gender" id="gender">
		 <option value="">---------Select Subject--------</option> 
						<option>Maths</option>
						<option>Science</option>
						<option>Social</option>

					</select>
			<label class="control-label">Teacher:</label>
            <select class="form-control" name="gender" id="gender">
						 <option value="">---------Select Subject--------</option> 
						<option>Raghavendra M</option>
						<option>Santosh</option>

					</select>
            
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            <button type="button" class="btn btn-primary">Save changes</button>
          </div>
        </div>
      </div>
    </div>


The problem I am facing is modal window is not appearing in center of screen and also it is appearing within a dialog window . How can I solve this.
Posted
Updated 5-May-14 10:23am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900