jquery - Passing autocomplete value to ajax not working -
i want show mysql result html table.my problem come here, variable value not sending ajax data (empty).
<form id="oqcform"> ..... <input type="text" id="fittest"/> <input type="text" id="nik"/> <button id="inputbutton">input</button> </form> <div id="qtycheck"></div> $("#inputbutton").click(function() { //ajax show mysql result html table var idnum = $("#nik").val(); $.ajax({ type:"post", url:"process2.php", data:"no="+idnum+"&action=personalqty", //problem here no = empty cache:false, async:false, success: function(result){ $('#qtycheck').html(result); //echo html table & mysql result } }); });
at console log:
no: --> empty action:personalqty
update
i try make duplicate value:
$("#inputbutton").click(function() { $('#fittest').val($('#nik').val()); });
input value not duplicated.
Comments
Post a Comment