Question : CLEAR FORM using jquery
Answered by : mudit
/*if form id is mkform */ $('#mkform')[0].reset();
Source : | Last Update : Thu, 17 Jun 21
Question : clear input jqueyr
Answered by : alexander-gudmundsson
$('#inputButtonID').val('');
Source : | Last Update : Fri, 14 Aug 20
Question : jquery clear form values
Answered by : crazy-crane-o658512dxg3u
$(".reset").click(function() { $(this).closest('form').find("input[type=text], textarea").val("");
});
Source : https://stackoverflow.com/questions/6364289/clear-form-fields-with-jquery | Last Update : Fri, 10 Apr 20
Question : clear input field jquery
Answered by : unusual-unicorn-2njvh5l07dxe
$('#shares').val('');
Source : | Last Update : Sat, 25 Jul 20
Question : clear value input jquery
Answered by : jules
<body> <form method="" action=""> <input type="text" name="email" class="input" /> <input type="submit" value="Sign Up" class="button" /> </form>
</body>
<script> $(document).ready(function() { $(".input").val("Email Address"); $(".input").on("focus", function() { $(".input").val(""); }); $(".button").on("click", function(event) { $(".input").val(""); }); });
</script>
Source : https://stackoverflow.com/questions/11755080/jquery-clear-input-default-value | Last Update : Sat, 18 Jul 20
Question : clear input field data in jquery
Answered by : dfg
$(document).ready(function() { $('input[type=text]').each(function() { $(this).val(''); });
});?
Source : https://learningjquery.com/2012/05/how-to-clear-textbox-value-using-jquery | Last Update : Thu, 28 Jul 22