i want to pass value from my main window to the popup window i am tryin to use jquery i already using list of item to show them as a grid view i want when the user click on detail button its show to him popup window
<div class="thumbnail" >
<img class="group lis t-group-image" style="height: 221px;
width: 353px; padding: 2px;
" src="../1'.$sql['img'].'" />
<div class="caption" style="height: 105px;">
<h4 class="group inner list-group-item-heading">
'.$sql['name'].'</h4>
<p class="group inner list-group-item-text">
'.$sql['details'].' </p>
<div class="row">
<div class="col-xs-12 col-md-12">
<p id="price1" class="lead">prdoudct price :'.$sql['price'].'</p></div>
</div>
</div>
<button id="btn1">Show Text</button>
<button data-toggle="modal" href="#shortModal" id="ww" class="btn btn-primary">details </button>
</div>
and here is the popup modal
<div id="shortModal" class="modal modal-wide fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<p>One fine body…</p>
</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><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
i want to pass the value to popup window to show details so any help ?
Aucun commentaire:
Enregistrer un commentaire