Dear good afternoon:
Requesting your kind support, in php
I have a input type text
where the user enters a Social Reason and when clicking, same string enter it into a datalist inside a function in javascript.
I've seen the routine in both php
and js
, but I have not found a way to combine the information.
Try getting the input value
$("#btnLoadProspect").click(function()
{
var Prospecto = $("#txtProspect").val();
Subsequently, assign it as any other object to the datalist (when creating it, add name and id):
$("#dlClient").val(Prospecto);
The result is that it applies it but it disables the previously filled list, it only leaves it as a text box with the value obtained.
I appreciate your kind time. Best regards