Question and answer is powered by AnsPress.io
I am inserting user data using jQuery Ajax and when user data insert done then I alert a success message that time I want to clear input text value using jquery. How can I clear form input text value in jquery?
If you want to clear text value using jquery, thern follow this example code:
<script type=”text/javascript”>
$(‘#input_text’).val(“”);
</script>
Here input_text is the input box ID name, ID name call by # sign.