clear input jqueyr
$('#inputButtonID').val('');
how To clear all the input element inside div using jquery
By LOVE
$('#divStaffContent').find('input:text, input:password, select')
.each(function () {
$(this).val('');
});
}
clear value input jquery
<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>
clear form input data using jquery
<script>
$(document).ready(function() {
$( "#buttonId" ).click(function() {
$(':input','#formId')
.not(':button, :submit, :reset, :hidden')
.val('')
.prop('checked', false)
.prop('selected', false);
});
});
</script>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us