Below code is my popup view...and i want to close popup on clicking close button (X) which is on top of popup...at the bottom of view i have jquery to close the popup..but thats not working..i have popup on another popup..just like parent popup and child popup.and in this case i have to close child popup... Please help me out
<div class="modal-dialog" style="width:1056px" id="pop">
<div class="modal-content">
<div class="modal-header">
<input type="button" onclick="close()" id="button" value="Close [x]" />
</div>
<div class="modal-body">
<div class="scroller">
<table class="display table table-striped table-bordered table-hover" id='tblTicket' cellspacing="0" width="100%">
<thead>
<tr>
<th>Data</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data</td>
</tr>
</tbody>
</table>
<table class="display table table-striped table-bordered table-hover" id='tblTicket' cellspacing="0" width="100%">
<tr>
<th>DATA</th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>
data
</td>
</tr>
}
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript" language="javascript">
$("#button").click(function () {
$("#pop").close
});
</script>