Hello! Following code
<script type="text/javascript"> $(document).ready(function(){ $("#buttonUpload").click(function(){ $.ajax({ url: "uploadContent.php", type: "GET", cache:true, data: {data:$("#textUpload").val()}, success: function(data){ $("#dataUpload").html(data); } }); }); }); </script> It gets the data parameter in id #dataUpload from the uploadContent.php file. I have this situation, I need to get several uploadContent.php parameters to different id, but I don’t want to repeat a bunch of requests to BD. You need jQuery.ajax to execute 1 request to uploadContent.php and get all the parameters, then scatter them by id.
I would be grateful if someone could help. If you give an article on the work, I will be doubly grateful