I am using an image instead of a reset button n html-php.I wrote a javascriptfunction to clear all the text box values,but it reloads the entire page,so that again the values appear in the textbox when reloading the page,when the image button for reset action is clicked .. My code is
<script type="text/javascript">
function clearall() {
$(".tinput").val( );
$(".tinput1").val( );
}
</script>
我不想让页面重新加载,但只清除所有文本字段。