I need select box for column to update
I need select box for column to update
vidhyaprakash85
Posts: 2Questions: 1Answers: 0
i have datatables inserted in my code. if the user want to change data then i need to provide select box containing data and after selecting need to update in the database please help me.
This discussion has been closed.
Answers
$('#bloodgroup_search').on('change', function() {
var bloodgroup = $("#bloodgroup_search").val();
var url = "blood-donor-search-fetch.php?bloodgroup=" + bloodgroup + "";
var myTable = '';
$("#donor_list").html('<center><img src="images/donate_blood.gif" alt="Data Loading"></center>');
$.getJSON(url, function(json) {
if (json == null)
{
myTable += "<center>
No Donors found with this Blood Group!!!!
</center><br/>";
$("#donor_list").html(myTable);
}
else
{
myTable += "
";
$("#donor_list").html(myTable);
});
this is the json fetching data from database in this example i need to place select box (already placed) when users select some value it has update in the database .
please provide me example links