PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
so that they can see exactly what they typed in the fields after they've
queried. Now I want to have a button that clears the form completely, but the trusty html reset button won't do the trick because it
only restores the values that were in the form when the page loaded, so it doesn't change anything after they've searched.
Does anybody have any ideas on how a guy could pull this off?
document.getElementById('myForm').reset();
//or
document.forms["myForm"].reset();
//or
document.forms[0].reset(); // <-- the first form is the one u want to reset