-1
I am doing a platform in php with html and ajax requests, I have two years . Whenever I change year it keeps the previous data there is some way to erase the data that is the datalist
-1
I am doing a platform in php with html and ajax requests, I have two years . Whenever I change year it keeps the previous data there is some way to erase the data that is the datalist
-1
Hello, I don’t know if I understand it very well. But you can’t give an "empty" using an innerHtml = "" in the element and reassemble the datalist.
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
Two years? So young and already programming in PHP? lol #Momentodescontraction. Seriously now, could you improve the question and if possible put the snippet of code that is in trouble? It seems to me that your problem is more with Ajax than with PHP. I await more information
– Fleuquer Lima
while ($Row = $statement->fetch(PDO::FETCH_ASSOC)) { $meiovida[] = "<option value='$Row[Description]'/>"; // Format for Adding options } echo json_encode($meiovida); I have something of this genre in php in ajax I just append. if using a select does not happen.
– usersantos
I’m sorry but I still can’t visualize your problem, if I could improve the question would help a lot.
– Fleuquer Lima
in the sql query of the least results.. in the datalist this by data relative to the previous query
– usersantos