clear the input when change the radio button
<script>
$('#textInput').click(function () {
$('input[name="radio"]').prop("checked", false);
});
</script>
4
3
$('input[name="am_payment"]').on('click', function() {
if ($(this).val() === '') {
$('#theamount').val('').prop("removed", true).focus();
}
else {
$('#theamount').val('').prop("disabled", false);
}
});
Thank you!
3
0
Are there any code examples left?
New code examples in category Javascript