php - Pull row data into modal window -
i have mysql query within php function: $sql_json = "select * mytable"; i displaying returned data table grid. first row has edit button once user clicks on it, opens modal window. should transfer data row bootstrap modal window. echo "<tr><td> <a class=\"btn btn-primary btn-mini\" data-toggle=\"modal\" href=\"#myeditmodal\" data-project-id=\"" .$row['pk_tid']. "\" \">delete/edit</a></td>"; now trying $row['pk_tid'] modal window here: <div class="modal hide fade" id="myeditmodal" tabindex="-1" role="dialog" aria-labelleby="mymodallabel" aria-hidden="true"> <div class="modal-header"> <div class="modal-body"> <form class="well-small" action="edit.php" method="post" id="modalform" name="modalform">...