I have a question. I am trying to clear the text fields of a form once a button is clicked. This is the HTML for the input type:
<input type="button" id="clear_entries" value="Clear Entries">
This is my Jquery code:
$("#clear_entries").click(
function() {
$(":text").val("");
})
nothing happens when I click the Clear Entries button and I am not sure why. I have confirmed with an alert statement(which I have removed from the above snippet) within the function to confirm that the function is being invoked.