3
I would like to know how to call the same screen only with empty fields!
That is, the same screen only from the beginning, without the information that the user informed!
Example of the fields: Campos
3
I would like to know how to call the same screen only with empty fields!
That is, the same screen only from the beginning, without the information that the user informed!
Example of the fields: Campos
4
Com javascript utilize
var form = document.getElementById('form');
form.reset();
This will erase the values of input fields, fields with default value will be maintained. Another solution is to use an input reset in the form.
<input type="reset">
1
i use a Function in javascrip in which I pass the page link that is the form. ex.:
function limpar(){
self.location = "./meusite.php?a=sda232";
}
then call Function through the onclick of the button
Browser other questions tagged php javascript html
You are not signed in. Login or sign up in order to post.
Please post the code here. Questions should be complete and Fiddle used only for demonstrations.
– brasofilo