You cannot do this with css ..
But you can use the user jQuery and its simple. All you have to do is ...
HTML code:
<form id="myform" method="post"> <input type.... /> <input type.... /> <input type.... /> <input type="button" id="clear" name="clear" /> </form>
JQuery Code:
$("#clear").click(function(){ $("#myform").reset(); });
And it will work. But a form tag is needed.
source share