Using jQuery, how can I clear the input text after I made a click? By default, the value remains in the input field.
For example, I have an input text and the value is <
Using jQuery ...
$('#submitButtonsId').click( function(){ $(#myTextInput).val(''); });
Using pure Javascript ...
var btn = document.getElementById('submitButton'); btn.onclick = function(){ document.getElementById('myTextInput').value="" };