I have a form that utilizes the Jquery form plugin. When the form is submitted I need to clear a textfield on my page. When this Javascript is run I want it clear the Textfield after running the php page.
<script>
// wait for the DOM to be loaded
$(document).ready(function() {
// bind 'myForm' and provide a simple callback function
$("#glue").ajaxForm({url: 'scripts/glue.php', type: 'post'})
});
</script>
This is my input field:
<input type="text" id="glueField" class="form-control" name="word" placeholder="Press enter to glue a word" autocomplete="off" autofocus>