Question and answer is powered by AnsPress.io
My form input box values not remove after some work. I want to clear all input value after click some button or get success result in jQuery.
To clear all from input text value in jquery follow this example code:
<script type=”text/javascript”>
if(res==”success”){
alert(“insert success”);
$(‘input[type=”text”]’).val(”);
}else{
alert(“error”);
}
</script>